What is prefill/decode disaggregation, and why do large-scale deployments separate the two?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Running both phases on the same GPUs creates interference: prefill bursts are compute-hungry and stall co-resident decodes (ITL spikes); decode steady-state is bandwidth-bound and leaves compute idle that queued prefills want. Chunked prefill softens this but only trades along the same curve - one pool must satisfy two SLOs (TTFT and TPOT) with anti-correlated resource profiles. Disaggregation (DistServe, Mooncake, NVIDIA Dynamo-style architectures; supported in vLLM) splits the fleet: a prefill pool processes prompts and produces KV caches; a decode pool receives the KV and streams tokens. The handoff transfers the sequence's KV cache over NVLink/RDMA/IB.
Full worked answer with diagram
Running both phases on the same GPUs creates interference: prefill bursts are compute-hungry and stall co-resident decodes (ITL spikes); decode steady-state is bandwidth-bound and leaves compute idle that queued prefills want. Chunked prefill softens this but only trades along the same curve - one pool must satisfy two SLOs (TTFT and TPOT) with anti-correlated resource profiles. Disaggregation (DistServe, Mooncake, NVIDIA Dynamo-style architectures; supported in vLLM) splits the fleet: a prefill pool processes prompts and produces KV caches; a decode pool receives the KV and streams tokens. The handoff transfers the sequence's KV cache over NVLink/RDMA/IB.
Why it wins at scale:
- Independent SLO tuning: prefill nodes optimise TTFT (run compute-saturated, big chunks, no one to disturb); decode nodes optimise ITL and batch density (stable, memory-optimised). DistServe showed large goodput gains under tight dual SLOs versus colocated serving.
- Independent scaling and hardware: prompt-heavy traffic scales the prefill pool; chatty long-generation traffic scales decode. The pools can even use different parallelism strategies or GPU SKUs (compute-optimised vs memory-bandwidth/capacity-optimised) - and prefill capacity can pull double duty with a global prefix-cache store (Mooncake's KV-centric design).
- Isolation: one 100K-token document upload can't freeze every stream on the box.
Costs and open problems: KV transfer is the tax - hundreds of MB to GBs per long sequence, needing fast interconnect and overlap-with-compute engineering; orchestration complexity (two-stage scheduling, failure handling mid-handoff, cache placement/affinity so prefix reuse still works); latency floor added by the hop; and it only pays past a scale where pool sizes can be balanced - a 4-GPU deployment should use chunked prefill and move on. Interview framing: chunked prefill = time-multiplexing one pool; disaggregation = space-partitioning into two specialised tiers. Same tension, stronger medicine, more moving parts.
Worth sketching. Two pools with the KV handoff drawn as the edge makes the tax explicit rather than letting it hide inside the architecture.
flowchart LR
R["Request"] --> PP["Prefill pool: compute-optimised,<br/>tuned for TTFT"]
PP -->|"KV cache over NVLink, RDMA or IB"| DP["Decode pool: bandwidth-optimised,<br/>tuned for ITL"]
DP --> S["Streamed tokens"]
PP --> SC["Scales with prompt volume"]
DP --> SD["Scales with generation volume"]
What a good answer covers
- Running both phases on the same GPUs creates interference
- Chunked prefill softens this but only trades along the same curve - one pool must satisfy two SLOs (TTFT…
- Disaggregation (DistServe, Mooncake, NVIDIA Dynamo-style architectures; supported in vLLM) splits the fleet
- The handoff transfers the sequence's KV cache over NVLink/RDMA/IB
- Independent SLO tuning: prefill nodes optimise TTFT (run compute-saturated, big chunks, no one to…
Key terms: interference · Disaggregation · prefill pool · decode pool · Independent SLO tuning · Independent scaling and hardware · Isolation · KV transfer · orchestration complexity
In the glossary: TPOT / ITL · Chunked prefill · vLLM · Handoff · SLO · Goodput
Interviewer follow-ups to expect
Estimate the KV bytes transferred for an 8K-token prompt on a 70B GQA model - is that transfer a problem on NVLink vs Ethernet?
How does disaggregation interact with prefix caching?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep