Streaming Response
Delivering a response incrementally as it is produced rather than all at once when complete.
A streaming response sends data to a client progressively rather than waiting for the whole result. On the web this is done with chunked transfer encoding, server-sent events, or WebSockets, and in a rendering framework with streaming boundaries that flush a page shell before slow content arrives.
Streaming exists because latency is felt, not measured. A response that takes ten seconds feels entirely different depending on whether anything appears in the first hundred milliseconds. This is why generated text is streamed token by token — the total is unchanged and the experience is not.
The design consequences are real. Errors can occur after the response has started, so the status code is already sent and failures must be communicated in-band. Intermediaries may buffer, defeating the whole exercise. And a stream that is aborted mid-flight leaves the receiver holding a partial result it must handle.
Cancellation deserves particular attention in agent systems, where a timeout typically wraps the entire turn including tool execution. A tool that overruns aborts the turn ungracefully, and the abort reaches the client as an error — so the tool's own honest report of what it managed to do never arrives. Budgeting the envelope against the real work, and reporting progress within the stream, is what keeps a long operation legible.
See also5
Agentic Loop
The cycle of model turn, tool call, observation, repeat — the basic mechanism of an AI agent.
Agents & Language Models13 connections
Server-Side Rendering
Producing a page's HTML on the server so the first response is already content.
Web Platform18 connections
Lazy Loading
Deferring the fetch of a resource until it is needed, or until the browser is idle.
Web Platform13 connections
Observability
How much of a system's internal state can be inferred from what it emits.
Method24 connections
Model Context Protocol
An open protocol for exposing tools, data, and prompts to AI applications through a uniform interface.
Agents & Language Models10 connections
Related4
Nearby in the graph rather than deliberately chosen. Looser, sometimes surprising.
Linked from11
- Automatic Speech RecognitionAgents & Language Models
Turning audio into text, and the reasons real-world accuracy is set by the signal more than by the model.
- BackpressureNetworks & Distribution
Backpressure is a slow receiver telling a fast sender to hold up, so a queue grows on purpose instead of by accident.
- Critical Rendering PathWeb Platform
The sequence of steps between receiving HTML and painting pixels, and everything that blocks it.
- Latency and JitterNetworks & Distribution
Latency is how long a packet takes; jitter is how much that time varies — and the second often matters more.
- Lazy LoadingWeb Platform
Deferring the fetch of a resource until it is needed, or until the browser is idle.
- Model Context ProtocolAgents & Language Models
An open protocol for exposing tools, data, and prompts to AI applications through a uniform interface.
- MulticastNetworks & Distribution
Multicast sends one stream to a group of subscribed receivers at once, letting the network fan it out instead of the sender.
- QUICNetworks & Distribution
QUIC rebuilds reliable, multiplexed transport on top of UDP so one lost packet stops blocking unrelated streams.
- Virtual Private NetworkNetworks & Distribution
An encrypted tunnel that presents a remote network as local, and the narrow set of things a commercial one actually hides.
- WebhookNetworks & Distribution
A webhook is an HTTP callback a service pushes to you when an event happens, inverting who initiates the request.
- WebSocketWeb Platform
A persistent, full-duplex connection between browser and server, replacing repeated request-response with an open channel.