Optimization

Continuous Batching Explained for Product Teams

Continuous batching keeps GPUs busy by admitting new requests as others finish. A plain-language explanation of why it matters, how it affects time to first token, and what to ask providers.

Continuous Batching Explained for Product Teams
Optimization · Inference Watch

Batching is how inference servers turn expensive per-request GPU passes into efficient work. Static batching waits for a group to assemble and runs them together — simple, and terrible for latency when requests arrive irregularly. Continuous batching admits requests as slots free up, keeping the GPU busy without making early requests wait for a full batch.

The intuition

Imagine a bus that leaves only when every seat is filled. Passengers who arrive first wait for the last, and on a quiet route nobody goes anywhere. Continuous batching is a bus that leaves on a schedule and picks up riders at each stop; no one waits for a full load, and the vehicle stays busy.

For LLMs, each “stop” is a decode step. The server adds new prefills and removes completed sequences between steps. Utilization rises, and the tail of request latency stops being governed by stragglers.

What it changes for users

EffectWhy
Better TTFT under irregular trafficRequests do not wait for a batch to fill
Higher throughput per GPUFewer idle slots between steps
Different tail behaviorLong requests share steps with short ones
More sensitive schedulingAdmission policy matters more than batch size

The new trade-off: interference

Mixing requests of different lengths improves utilization and creates interference. A long prompt’s prefill occupies the step while short decodes wait. A long generation keeps a slot occupied for many steps. Without admission control, a few heavy requests can degrade everyone’s inter-token latency.

Good servers handle this with priority classes, prefill/decode separation or length-aware scheduling. Poor ones let the mix decide. That difference is invisible in a throughput chart and obvious in p99 latency.

Key takeaway Ask not “do you use continuous batching?” — almost everyone does — but “how do you protect short interactive requests from long batch jobs?”

Why phase separation follows

Continuous batching exposes a structural tension: prefill is compute-bound and benefits from large batches, decode is memory-bandwidth-bound and suffers from them. Scheduling both in one pool forces a compromise. Separating them — prefill on one fleet, decode on another — lets each be batched appropriately. That is the motivation behind heterogeneous P/D disaggregation.

What to measure

  • TTFT p95/p99 at your arrival rate, not at a synthetic constant load.
  • Inter-token p99 for short interactive requests, with long batch jobs running.
  • Throughput at your latency SLO, not peak throughput.
  • Behavior at spike: queueing, shedding or graceful degradation.

The last item is where scheduling policy shows. A server that degrades by lengthening answers is more usable than one that times out. See SLA design for how to contract it.

A note on evaluation

Batching settings can shift output distributions at the margin. Most of the effect is numerical noise, but strict structured tasks can notice. Include a conformance stratum in any serving-change evaluation, as described in effective-token measurement.

FAQ

Is continuous batching the same as dynamic batching?

Related but not identical. Dynamic batching groups requests within a time window; continuous batching schedules at the decode-step level. The latter is now standard for LLM serving.

Does it hurt quality?

Generally not measurably, though numerical effects exist at the margins. Verify structured-output strata if that is your product.

Do I need to configure it myself?

If you use a token service, no — but ask how admission is prioritized. If you self-host, scheduling policy is one of the highest-leverage settings you own.

Filed in Optimization. The wider frame — how serving cost and token quality travel into price — is in The Transmission.

IW

Inference Watch Research

Inference Watch covers AI compute and inference infrastructure. Company Watch items are reproduced with attribution and are not independently verified.