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
Hand-picked in the note itself — the neighbours worth reading next.
Agentic Loop
The cycle of model turn, tool call, observation, repeat — the basic mechanism of an AI agent.
Agents & Language Models12 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 Platform12 connections
Observability
How much of a system's internal state can be inferred from what it emits.
Method15 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 from3
Notes elsewhere in the wiki that reach for this one.
- Critical Rendering PathWeb Platform
The sequence of steps between receiving HTML and painting pixels, and everything that blocks it.
- 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.