All Questions
Llm Inference Serving medium

Analytics show 30% of chat users click 'stop' or close the tab mid-response. Your SSE server keeps generating each abandoned response until max_tokens. GPU cost is rising and queue wait is growing. What should you change?

  1. A Detect the closed connection and abort the sequence in the scheduler, freeing its batch slot and KV blocks.
  2. B Lower max_tokens for all users so that abandoned responses consume fewer decode steps before they finish.
  3. C Buffer abandoned outputs server-side so that users who return can be served the finished response instantly.
  4. D Add an idle timeout so the load balancer drops streams that have had no client reads for 60 seconds.

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

Get the app

Related questions