AI Infra Interviews logo
← LLM Inference & Serving / 20
hardSGLangAnthropicPerplexity

How do you route requests across replicas to maximize prefix-cache hits without unbalancing the fleet?

A cached replica can still be the slower choice. Compare saved prefill against waiting time, then handle stale cache reports, pending dispatches and tenant boundaries.

Updated Oct 2026 · Learn how AI infrastructure works through explanations, worked examples and diagrams, then practise applying it to interview questions.

A cached replica can still be the slower choice. Compare saved prefill against waiting time, then handle stale cache reports, pending dispatches and tenant boundaries.

This answer is included with a free account. Sign in to read it and save your progress.

free account · no card needed

Work through the numbers

Change the assumptions in a free calculator, then explain what the result establishes and what still needs measurement.

UP NEXT ON YOUR JOURNEY
FEDITOR'S NOTE

Compare a busy replica with a cached prefix against a quieter one without it. Work out when the saved prefill time outweighs the queue delay, then account for stale cache information.

DISCUSSION · 0

No comments yet — be the first to share your approach.