A tricky LLM inference interview question: Why load balancing needs KV-aware routing
The author examines a tricky LLM inference interview question regarding why time to first token remains high for agent traffic despite requests being routed to the least busy replica. The explanation centers on KV-aware routing, which accounts for prefix cache reuse and estimated remaining prefill work rather than simply counting active requests. By factoring in shared prompt blocks, SGLang improved cache hits and throughput on its benchmark. Open article →