0Pricing
Go Academy · Lesson

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

  1. Protocol Buffers and .proto Files
  2. Implementing a Unary gRPC Service
  3. Server and Client Streaming
  4. gRPC Interceptors and Metadata
← Back to Go Academy