Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

tenderlove/our_pc

Repository files navigation

Don't use this code!

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

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.

Features

  • 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

Limitations

  • Doesn't support streaming yet.

  • OurPC doesn't have many tests (it's an experiment!)

Fun times!

Try this! In one terminal:

$ rake server

In a different terminal:

$ rake client

Neat!

About

Our Procedure Calls

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages