Protocols
Saved & recent

gRPC

Also called: Google RPC framework, gRPC streaming

gRPC is an RPC framework with a defined protocol, commonly using HTTP/2 and Protocol Buffers. A service definition specifies callable methods and message types; generated client and server code connects those definitions to application logic. Calls can be unary, client-streaming, server-streaming or bidirectional-streaming.

For a hypothetical telemetry service, WatchSensor can accept one sensor identifier and return a stream of readings. Each call also has status and may have metadata and a deadline. A client deadline expiring does not prove that the server performed no work, and cancellation does not undo changes already made.

Read first
Remote procedure call
Related
Remote procedure call, Protocol Buffers, HTTP/2
Further reading
unary 1 1 client streaming 1 2 3 1 server streaming 1 3 2 1 bidirectional streaming 1 2 3 3 2 1 WatchSensor example ordered messages within each stream
The four gRPC call patterns count application messages, not packets. WatchSensor illustrates server streaming; bidirectional call streams can progress independently while preserving each direction’s message order.

View in the full Protocols collection