Part 7
3 chapters
Large payloads & streaming
Move large or continuous data over REST with Range requests, chunked transfer, SSE, and NDJSON, and recognize when to leave REST behind.
Chapter 15
Large binary resources & Range requests
Serve a large manifest without forcing clients to download it whole: HEAD for metadata, Accept-Ranges, byte-range requests answered with 206 Partial Content and Content-Range, and 416 for an unsatisfiable range.
Chapter 16
Streaming deep-dive
Push data as it is produced: chunked transfer encoding, Server-Sent Events for live updates, and NDJSON for bulk export โ and how to prove a response is delivered incrementally, not buffered.
Chapter 17
Cross-protocol choices
When to leave REST: how REST and SSE compare with WebSockets, webhooks, and gRPC for moving data, and which interaction shapes each one fits.