Streaming RPCs: Server, Client & Bidirectional
Go beyond unary calls and learn gRPC's three streaming modes for sending sequences of messages over a single call.
Beyond Unary
A unary RPC is one request, one response. But many problems need a sequence of messages — feeds, uploads, chat.
gRPC offers three streaming modes built on HTTP/2 streams.
The Four Method Shapes
In a .proto service you can declare:
- Unary: one in, one out.
- Server streaming: one in, many out.
- Client streaming: many in, one out.
- Bidirectional: many in, many out.
All lessons in this course
- Protobuf Schema Definition
- Generating gRPC Code
- Simple Unary gRPC Service
- Streaming RPCs: Server, Client & Bidirectional