Search code examples
protocol-buffersrpc

How Google protobuf RpcController work?


I would like to know the internals of how rpc mechanism in google protobuf works?

what does it use tcp or udp? what protocol does it use to communicate between remote machines?


Solution

  • Protobuf's RpcController is an abstract interface that could be implemented by multiple different RPC systems using a variety of protocols.

    If you're specifically asking about gRPC -- Google's Protobuf-based RPC framework -- it sends RPCs as HTTP/2 requests/responses with Protobuf-encoded bodies, over TCP. You can read all about it on the gRPC web site.