Skip to content

stevenchen3/databroker

Repository files navigation

About

This is an example program implemented using C++ to demonstrate the how to use gRPC and protocol buffer to exchange data between processes.

Get started

Requirements

  • Linux environment
  • G++ 4.2.x
  • GNU Make 3.8 or above
  • Protobuf compiler (protoc must be available)
  • Protobuf gRPC C++ plugin

Build

$ cd databroker
$ make

Try it!

Run the server, which will listen on port 50051:

$ ./databorker_server

Run the client (in a different terminal):

Note that input validation is not supported at this moment.

Send data to server:

$ ./databorker_client 50051 PUT /local/path/to/file

Retrieve data from server:

$ ./databorker_client 50051 GET <ID> /path/to/store/file

About

A simple databroker using gRPC stream APIs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published