liveBook · Manning

Server streaming

Server streaming is an RPC communication pattern in which one client request produces a sequence of responses from the server.

How 2 Manning books explain it

Akka in Action, Second Edition

Server streaming is a remote procedure call pattern in which one client request produces multiple server responses.

How it is used
Delivers continuously changing server-side data, such as vehicle locations, after a single client request.
How deep it goes
Defines the RPC shape, demonstrates an infinite response stream, and extends it with restart backoff; it stops short of stream internals.
Examples
Uses a LocatorService, grpcurl output, a one-update-per-second location stream, and a client test that survives service restarts.
What you can do after
Builds a streaming gRPC endpoint and configures an Akka Streams client to reconnect with bounded exponential backoff.

Read how Akka in Action, Second Edition explains server streaming →

Build High Value Software Systems

Server-side streaming is the incremental transmission of generated data from a server to a client rather than buffering the complete result.

How it is used
Constrains an order-export implementation to stream CSV from the server rather than buffer the full result.
How deep it goes
Specifies bounded database reads and incremental HTTP writes, without detailing implementation code.
Examples
Uses an authenticated order-export endpoint producing CSV, including for users with 10,000 or more orders.
What you can do after
Evaluate an export implementation against requirements for bounded reads, privacy, and server-side CSV generation.

Read how Build High Value Software Systems explains server streaming →

Also covered in

What to know first

Related concepts

Questions about server streaming

What is server streaming?

Server streaming is an RPC communication pattern in which one client request produces a sequence of responses from the server.

Which Manning books explain server streaming?

Akka in Action, Second Edition and Build High Value Software Systems.

What should I know before learning server streaming?

Manning books that teach server streaming usually introduce gRPC first.

What is the difference between server streaming and bidirectional streaming?

Server streaming is an RPC communication pattern in which one client request produces a sequence of responses from the server. Bidirectional streaming is a communication pattern in which both endpoints independently exchange multiple messages over a single ongoing connection or call.

What is server streaming a kind of?

Server streaming is a kind of streaming. Streaming is the incremental transfer or delivery of data as it becomes available, without requiring the complete result to be held or transferred at once.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.