Software Design

gRPC Bidirectional Streaming on a Single TCP Stream

UML Sequence Diagrams · made in Skemio

UML sequence diagram illustrating bidirectional gRPC streaming with concurrent client and server DATA frames over an HTTP/2 connection.
UML sequence diagram illustrating bidirectional gRPC streaming with concurrent client and server DATA frames over an HTTP/2 connection.

What it shows

  • A single persistent HTTP/2 connection hosts concurrent upstream and downstream.
  • Either side can send messages independently at any time without waiting.
  • Independent EOF half-close signals allow clean termination of each direction.

The takeaway

Bidirectional gRPC gives full-duplex communication with zero polling overhead over one socket.

More uml sequence diagrams