Skip to content
IJK

Dynamo Prefix Routing and Disaggregated Serving: The Mechanism

By IJK ·

How NVIDIA's post says Dynamo routes requests to workers that hold the relevant KV blocks and what separating prefill from decode changes on a cache miss.

Routing to the worker that holds the prefix

Dynamo routes requests to workers that already hold the relevant KV blocks, either through its frontend router or through GAIE/EPP integration at the Gateway API layer. [1]

on a missRequestrouted to a worker already holding the KV blocksPrefill poolreprocesses the prompt on a KV-cache missDecode workerstake over token-by-token generation
What happens to a request, and what happens when the prefix is missing?

Separating prefill from decode

Dynamo can also separate prompt processing (prefill) from token generation (decode), an architecture known as disaggregated serving. [2]

Decode workers then take over token-by-token generation, which has different GPU, memory, latency, and batching characteristics. [3]

What happens on a cache miss

On KV-cache misses, all or part of the prompt must be reprocessed by the prefill pool. [4]

Sources

  1. The NVIDIA source says: Dynamo routes requests to workers that already hold the relevant KV blocks, either through its frontend router or through GAIE/EPP integration at the Gateway API layer. Build a Validated Kubernetes Runtime for NVIDIA Dynamo
  2. The NVIDIA source says: Dynamo can also separate prompt processing (prefill) from token generation (decode), an architecture known as disaggregated serving. Build a Validated Kubernetes Runtime for NVIDIA Dynamo
  3. The NVIDIA source says: Decode workers then take over token-by-token generation, which has different GPU, memory, latency, and batching characteristics. Build a Validated Kubernetes Runtime for NVIDIA Dynamo
  4. The NVIDIA source says: On KV-cache misses, all or part of the prompt must be reprocessed by the prefill pool. Build a Validated Kubernetes Runtime for NVIDIA Dynamo

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • inference
  • dynamo
  • kv cache
  • nvidia