Skip to content
Preptima
hardConceptDesignSeniorStaffLead

What does batching buy you when serving an LLM, and what does it do to your latency budget?

5 min readUpdated 2026-08-15

Answer

Short answer

Batching amortises the memory traffic of reading model weights across many requests, so throughput rises far faster than per-step time does. Continuous batching lets requests join and leave each iteration, but the gain is paid for in tail latency, which is why interactive and bulk traffic want separate pools.

Was this answer helpful?

Likely follow-ups

  • Your batch size is capped by memory, not compute. What do you change first?
  • How does a long prompt arriving mid-stream affect users already decoding, and what mitigates it?
  • Why might raising concurrency reduce your effective throughput?
  • How would you set a queueing admission limit, and what should happen to requests you reject?

Related questions

Masterclass guide

Further reading