Server-streaming RPC

A server-streaming RPC accepts one request and allows the server to send multiple response messages over the same RPC. In this course, WatchOrder streams order status updates to a customer without requiring repeated polling requests.

Minimal example

proto
service OrderService {
  rpc WatchOrder(
    WatchOrderRequest
  ) returns (stream WatchOrderResponse);
}

Learn this concept

Lesson 7.12 · Protobuf contracts in Go

Used in exercises

Exercise 7.13 · gRPC order service
Prerequisite conceptsProtocol BuffersgRPC