All Questions
Llm Inference Serving easy

You are adding streaming to a text-completion API. The client sends one prompt, and the server streams tokens back through your existing HTTP load balancers and proxies. Which transport fits this pattern best?

  1. A WebSocket, because a full-duplex connection is required for the server to push tokens as they are generated.
  2. B Server-Sent Events, because one-way server-to-client streaming over plain HTTP fits a single request-response.
  3. C Long polling, because each poll returns the tokens produced since the previous one without holding connections.
  4. D gRPC bidirectional streaming, because browsers natively support it over HTTP/1.1 for incremental token delivery.

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

Get the app

Related questions