Server and Client Streaming
Bidirectional streaming and backpressure
gRPC streaming types
gRPC supports three streaming modes beyond unary: server-streaming (server sends many), client-streaming (client sends many), and bidirectional (both stream).
Server streaming in .proto
Use the stream keyword before the response type:
service EventService {
rpc ListEvents (ListEventsRequest) returns (stream Event);
}All lessons in this course
- Protocol Buffers and .proto Files
- Implementing a Unary gRPC Service
- Server and Client Streaming
- gRPC Interceptors and Metadata