gRPC - now with easy installation
Today we are happy to provide an update that significantly simplifies the getting started experience for gRPC.
For most languages, the gRPC runtime can now be installed in a single step via native package managers such as
npm
for Node.js,gem
for Ruby andpip
for Python. Even though our Node, Ruby and Python runtimes are wrapped on gRPC’s C core, users now don’t need to explicitly pre-install the C core library as a package in most Linux distributions. We autofetch it for you :-).For Java, we have simplified the steps needed to add gRPC support to your build tools by providing plugins for Maven and Gradle. These let you easily depend on the core runtime to deploy or ship generated libraries into production environments.
You can also use our Dockerfiles to use these updated packages - deploying microservices built on gRPC should now be a very simple experience.
The installation story is not yet complete: we are now focused on improving your development experience by packaging our protocol buffer plugins in the same way as the gRPC runtime. This will simplify code generation and setting up your development environment.
Want to try it?
Here’s how to install the gRPC runtime today in all our supported languages:
Language | Platform | Command |
---|---|---|
Node.js | Linux, Mac, Windows | npm install grpc |
Python | Linux, Mac, Windows | pip install grpcio |
Ruby | Linux, Mac, Windows | gem install grpc |
PHP | Linux, Mac, Windows | pecl install grpc-beta |
Go | Linux, Mac, Windows | go get google.golang.org/grpc |
Objective-C | Mac | Runtime source fetched automatically from GitHub by CocoaPods |
C# | Windows | Install gRPC NuGet package from your IDE (Visual Studio, Monodevelop, Xamarin Studio) |
Java | Linux, Mac, Windows | Use our Maven and Gradle plugins that provide gRPC with statically linked boringssl |
C++ | Linux, Mac, Windows | Currently requires manual build and install |
You can find out more about installation in our quick start pages and GitHub repositories. Do send us your feedback on our mailing list or file issues on our issue tracker if you run into any problems.