System design · interactive
Streaming responses
A model answer takes several seconds to generate. Streaming only helps if every hop between the model and the browser passes chunks on immediately. One buffering proxy undoes it all.
t = 0.0 s
Model
0/29 tokens
API server
0/29 tokens
Proxy / CDN
0/29 tokens
Browser
0/29 tokens
User's screen
…
The API streams, but the proxy collects the whole response before passing it on. The user still waits 8 s.
Setup
Step 3 of 4 · read left to right
In production
Tools and technologies
Streaming has to be enabled at every hop.
Not tied to one language — use these names when you search docs or design a system.