0Pricing
gRPC & High Performance APIs · Lesson

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

  1. Protobuf Schema Definition
  2. Generating gRPC Code
  3. Simple Unary gRPC Service
  4. Streaming RPCs: Server, Client & Bidirectional
← Back to gRPC & High Performance APIs