System Design
16. Performance EngineeringAnimated
Throughput Optimisation
Handling more work per second.
The idea
Batch, pool connections, parallelise and remove contention.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
Continuous batching: every tick, each running request makes one token of progress.
- tick:
- 1
1/17
Continuous batching is how vLLM, TGI and TensorRT-LLM keep throughput high.
Step by step
- 1Find the saturating resource
- 2Batch work
- 3Add parallelism
- 4Check latency stays acceptable
Where it is used
Pipelines and APIs.
Watch out for
Pushing throughput can raise latency.