Git Product home page Git Product logo

grpc.github.io's Introduction

gRPC – An RPC library and framework

gRPC is a modern, open source, high-performance remote procedure call (RPC) framework that can run anywhere. gRPC enables client and server applications to communicate transparently, and simplifies the building of connected systems.

Homepage: grpc.io
Mailing List: [email protected]

Join the chat at https://gitter.im/grpc/grpc

To start using gRPC

To maximize usability, gRPC supports the standard method for adding dependencies to a user's chosen language (if there is one). In most languages, the gRPC runtime comes as a package available in a user's language package manager.

For instructions on how to use the language-specific gRPC runtime for a project, please refer to these documents

  • C++: follow the instructions under the src/cpp directory
  • C#/.NET: NuGet packages Grpc.Net.Client, Grpc.AspNetCore.Server
  • Dart: pub package grpc
  • Go: go get google.golang.org/grpc
  • Java: Use JARs from Maven Central Repository
  • Kotlin: Use JARs from Maven Central Repository
  • Node: npm install @grpc/grpc-js
  • Objective-C: Add gRPC-ProtoRPC dependency to podspec
  • PHP: pecl install grpc
  • Python: pip install grpcio
  • Ruby: gem install grpc
  • WebJS: follow the grpc-web instructions

Per-language quickstart guides and tutorials can be found in the documentation section on the grpc.io website. Code examples are available in the examples directory.

Precompiled bleeding-edge package builds of gRPC master branch's HEAD are uploaded daily to packages.grpc.io.

To start developing gRPC

Contributions are welcome!

Please read How to contribute which will guide you through the entire workflow of how to build the source code, how to run the tests, and how to contribute changes to the gRPC codebase. The "How to contribute" document also contains info on how the contribution process works and contains best practices for creating contributions.

Troubleshooting

Sometimes things go wrong. Please check out the Troubleshooting guide if you are experiencing issues with gRPC.

Performance

See the Performance dashboard for performance numbers of master branch daily builds.

Concepts

See gRPC Concepts

About This Repository

This repository contains source code for gRPC libraries implemented in multiple languages written on top of a shared C++ core library src/core.

Libraries in different languages may be in various states of development. We are seeking contributions for all of these libraries:

Language Source
Shared C++ [core library] src/core
C++ src/cpp
Ruby src/ruby
Python src/python
PHP src/php
C# (core library based) src/csharp
Objective-C src/objective-c
Language Source repo
Java grpc-java
Kotlin grpc-kotlin
Go grpc-go
NodeJS grpc-node
WebJS grpc-web
Dart grpc-dart
.NET (pure C# impl.) grpc-dotnet
Swift grpc-swift

grpc.github.io's People

Contributors

chalin avatar sergiitk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grpc.github.io's Issues

Generate gRPC code section of Quickstart is missing steps

http://www.grpc.io/docs/#quick-start is inconsistent with the recommended installation strategy for some languages.

Our current installation recommendation is to install.
libgrpc, libgrpc-dev, language level proto runtime, language level grpc runtime (ie pip install protobuf grpcio).
This does not provide us with the tools needed to generate RPC interfaces. For example, in python we will be missing
protoc, grpc_python_plugin. Both of which need to be compiled from sources of protobuf and grpc respectively.

For each wrapped language, we need to:
Run through the packaged install, see if we are missing steps that involve compiling from source.
Change documentation to reflect these steps.

Assigning to Lisa, but we need child bugs for each language.

Update gRPC Java examples to drop references to Netty and use ManagedChannelBuilder/ServerBuilder instead

Current client side examples for RouteGuide still use NettyChannelBuilder
See: http://www.grpc.io/docs/tutorials/basic/java.html for these references.

The examples have switched to use ManagedChannel/ManagerChannelBuilder per
grpc/grpc-java#1008

On the server side, we now use Providers since grpc/grpc-java#1005
The documentation needs to be similarly updated to drop references to NettyServerBuilder and instead ServerBuilder/Server

@carl-mastrangelo could you help @LisaFC with the review? Flagging this as a bug since our docs are now out of date and show the use of API that has been marked as not-stable and experimental.

Ruby code has markdown escaping for underscores

In http://www.grpc.io/docs/#writing-a-server, I'm seeing underscores interpreted as italics. In other words, I see:

class GreeterServer < Helloworld::Greeter::Service
  # sayhello implements the SayHello rpc method.
  def sayhello(helloreq, _unusedcall)
    Helloworld::HelloReply.new(message: "Hello #{hello_req.name}")
  end

instead of

class GreeterServer < Helloworld::Greeter::Service
  # say_hello implements the SayHello rpc method.
  def say_hello(hello_req, _unused_call)
    Helloworld::HelloReply.new(message: "Hello #{hello_req.name}")
  end

Create a top level section in grpc.io with link and abstract of Posts.

Like in golang.org's Featured Articles Section, we need a Top level section on
"Latest Posts"
Which links to the last 2 posts and has a 2 line abstract.
This will showcase:

  • Recent updates to the site.
  • Easily make posts visible to new site owners.

We need this before we post the beta announcement on the site, so likely this week if possible.

Add remaining language examples to auth.md

Currently we're missing (as far as I can see):

  • some C++ examples (I know there are some in the general API section but they should be comprehensive and in Examples as well, as that's where users are going to look for them)
  • some Objective C examples (there are none)
  • just using SSL/TLS example for PHP (it looks like it's in the auth with Google example but I don't know enough about PHP to pull it out separately)
  • Scopeless credentials example for Java (if it exists)

Add named anchors to FAQ items.

Sometimes we have a need to deep link directly to specific FAQ items. This task is to add bookmarkable anchors to each question.

"Generating gRPC code" for Java requires building protoc

So we've done a bunch of work to distribute pre-built protoc and plugin. However, for the command ../gradlew build it requires building protobuf manually. That can be avoided with ../gradlew build -PskipCodegen=true, but that doesn't help demonstrate how to use protoc with Java. It basically leads to wasted effort by our users, as seen in grpc/grpc-java#981.

Document single argument and return for methods

People coming to proto for the first time probably expect methods to be able to receive multiple arguments and possibly even able to return multiple. We should have a small bit of info about how having a single message in each direction isn't truly limiting since you add "arguments" as fields of that message. That could also be part of a "best practices", since it allows you to add fields over time.

Add a few more FAQ topics.

We should add a few more:

Simple, yet rich integration with auth and encryption libraries.
Easy to use flow control mechanism Built-in message compression that can be switched off (Future) Enhanced support for load-balancing solution integrations. Useful stats collected, aggregated by library, ability to access and export them enables developer and operator tuning and monitoring

/cc @jayantkolhe

Add the Java Quickstart section.

The Java Quickstart has not yet been moved over. We need to move it (and possibly update it) to fit in with the same style as the rest of the languages.

This work is part of the feature/docs branch and not yet on master. A PR is open.

Minor fixes needed to sync tutorial/basic/java.md with latest example code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.