Glossary · term

KV-Aware Routing

KV-aware routing chooses where an LLM request will execute using information about reusable attention key-value cache and worker load. A replica that already holds the matching prompt prefix can avoid recomputing that part of prefill. The router balances this saving against queueing and other work. It selects a serving destination for a model; semantic model routing instead decides which model should answer.

LLMOps2024-05-08R5Maturity: 3/5

Origin and context

Distributed serving makes cache locality a scheduling problem: a useful prefix on one accelerator is not automatically available on another. Preble studied distributed prompt scheduling that accounts for both reuse and computation. Mooncake built a cache-centered serving architecture, while NVIDIA Dynamo introduced a router that tracks reusable state across workers. Their designs show why cache placement and load balancing need to be considered together.

Sources: s1, s2, s3

Why it matters

Repeated system prompts and shared document prefixes offer reuse opportunities, but round-robin routing can scatter those requests across cold replicas. Conversely, always choosing the warmest replica can overload it. Cache-aware scheduling tries to retain the computational benefit without concentrating all demand on one worker. Its success should be measured with latency and useful throughput under the intended traffic mix, not cache-hit rate alone.

Sources: s1, s2, s3

Example

Consider an illustrative service with three replicas. One holds a long shared prefix but has a deep queue; another has less cached state and spare capacity. A useful routing policy estimates whether saved prefill time outweighs waiting on the busy replica. Compare it against load-only routing using the same request trace, include cold starts and evictions, and record first-token latency, completion latency, errors and the fraction meeting service targets.

Sources: s1, s2, s3

Maturity and evidence

Maturity 3 reflects multiple published scheduling designs and an available engineering implementation. The core idea is established, while cache indexing, transfer and scoring details remain system-specific. A successful experiment on repeated-prefix traffic does not imply the same gains when most prompts are unique or the cache is frequently evicted.

Sources: s1, s2, s3

Limits and open questions

Cache information can become stale, tracking and transfers have costs, and replica eligibility still depends on compatible model configuration. A cache hit is an optimization rather than an authorization decision. Keep tenant access boundaries intact and test scale-out, worker replacement and failure recovery. Routing and cache transfer are separate mechanisms; deploying one does not automatically provide the other.

Sources: s1, s2, s3

Related terms

References

Last updated: 2026-10-23

In the Skills Atlas

This term is also covered in the Skills Atlas as kv cache optimization skill.

In the Skills Atlas

This term is also covered in the Skills Atlas as llm inference serving skill.

Cite or link to this resource · CC BY 4.0
Free to quote, link, and reuse with attribution

Referencing this analysis in documentation, research, or an engineering write-up? Copy a formatted link or citation below:

Show citation text & canonical URL
Markdown: [KV-Aware Routing — AI Glossary — Skills Intelligence](https://www.skillsintelligence.tools/glossary/term/kv-aware-routing)
APA: Skills Intelligence. (2026). KV-Aware Routing — AI Glossary. Skills Intelligence AI Glossary. Retrieved from https://www.skillsintelligence.tools/glossary/term/kv-aware-routing