Actually go ahead and use this code (I don't mind). But Cookpad did a better and more full implementation here. Use their code and not mine! This repo is just going to stay public for posterity.
OurPC is an experimental implementation of a gRPC client and server.
OurPC uses nghttp2, Ruby IO objects, and Protobuf as the building blocks for implementing a gRPC server and client. The core of OurPC simply sets the right headers (including the Protobuf buffer prefix), and delegates to either the server code or the client code depending on the context.
-
Core implementation is pure Ruby
-
Uses plain old Ruby IO objects, so server/client side timeouts can be provided to various IO calls
-
MIT licensed
-
Doesn't support streaming yet.
-
OurPC doesn't have many tests (it's an experiment!)
Try this! In one terminal:
$ rake server
In a different terminal:
$ rake client
Neat!