/reactor-grpc-examples

Examples showing how to implement gRPC clients and servers using Reactor Core API

Primary LanguageJavaApache License 2.0Apache-2.0

Reactor GRPC Examples

This project demonstrates how to use gRPC-Java with reactive-grpc in order to greatly simplify the development of gRPC clients and servers and avoid common pitfalls such as ignoring back-pressure.

The project contains two Protobuf examples, helloworld.proto and hello_streaming.proto. The examples have been forked from the original gRPC-Java repository, along with their client and server classes. The client and server classes have then been copied and changed to use the Reactor Core API, so that you can see the effect on the code side-by-side. The following table shows the original and modified classes.

gRPC-Java reactive-grpc
HelloWorldClient ReactorGreeterClient
HelloWorldServer ReactorGreeterServer
ManualFlowControlClient ReactorStreamingGreeterClient
ManualFlowControlServer ReactorStreamingGreeterServer

Copyright and License

Like the original code in the gRPC-Java repository, this project is covered by the Apache License, Version 2.0.