All Questions
Llm Inference Serving medium

Token streaming works when you hit the inference server directly, but through your production reverse proxy users see nothing for 20 seconds and then the whole response at once. Server logs show tokens flushed every ~50 ms. What is the most likely cause and fix?

  1. A SSE cannot traverse reverse proxies reliably; migrate the endpoint to WebSockets so frames pass through unbuffered.
  2. B The model decodes too slowly under load; add GPU replicas so that tokens are produced fast enough to stream.
  3. C The proxy is buffering or compressing the response; disable buffering and gzip for the text/event-stream route.
  4. D The client's HTTP library waits for Content-Length; send the full length in headers before streaming starts.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions