Software Design

gRPC Unary Call Flow: Protobuf to Wire and Back

UML Sequence Diagrams · made in Skemio

Sequence diagram tracing a gRPC unary call through Client Stub, HTTP/2 Transport, and Server Stub with binary serialization steps.
Sequence diagram tracing a gRPC unary call through Client Stub, HTTP/2 Transport, and Server Stub with binary serialization steps.

What it shows

  • Protobuf serializes objects into compact binary instead of text strings.
  • HTTP/2 multiplexes unary calls into binary frames with compressed headers.
  • Client and server stubs handle type-safe marshalling automatically.

The takeaway

Binary serialization plus HTTP/2 framing eliminates payload bloat and network parsing overhead.

More uml sequence diagrams