Take a typical LLM serving stack: an API gateway, a request queue, a pool of GPU inference servers running continuous batching, and a single region behind a load balancer. What breaks under load, and what would you change first?
Theme reported publicly: Anthropic
Answer
Model answer, written in a candidate's voice
In short
- Accelerator memory and KV cache are the primary bottleneck; batching policy and queueing drive tail latency
- Admission control, backpressure, priorities, and graceful degradation under overload
- Routing and multi-region: health-aware, latency-aware placement rather than round-robin
- Observability: per-stage latency, KV cache occupancy, queue depth, rejection rate
- Cost/latency trade-offs: batch size, max output length, model tiering
- Prioritise fixes: memory/admission first, then routing/observability, then cost tuning
In full
Since the specific design isn’t shown, I’d reason from the usual failure modes, and the first thing that breaks is accelerator memory: KV cache grows with sequence length and batch size, so under load the scheduler either queues requests or preempts/evicts, and tail latency blows up. I’d fix admission control and batching first — cap concurrent sequences, use continuous batching with a hard token/batch budget, and shed or degrade low-priority traffic rather than letting the queue grow unboundedly. Then add backpressure and priorities so interactive traffic survives overload, and route across regions with health- and latency-aware balancing instead of round-robin. Observability — per-stage latency, KV cache occupancy, queue depth, rejection rate — is what tells you which of these is actually binding, so I’d instrument before and after. On cost/latency, larger batches improve throughput but hurt latency, so I’d tune batch size and max output length against SLOs and consider smaller models or shorter contexts for low-value traffic. Priorities: memory/KV-cache and admission control first, then routing and observability, then cost tuning.
What a strong answer covers
- Finds the bottlenecks: accelerator memory and KV cache, batching policy, queueing
- Overload handling: admission control, backpressure, priorities, graceful degradation
- Routing and multi-region
- Observability
- Cost/latency trade-offs
- Prioritises the fixes
Common mistakes
- Redesigning from scratch instead of critiquing
- Ignoring tail latency and overload