System Design
20. System Design Case StudiesAnimated
LLM Inference Platform
Serve LLMs to many users efficiently.
The idea
A gateway, scheduler, GPU pools with continuous batching and KV cache, and autoscaling.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
The gateway authenticates and applies token-based quotas.
- step:
- 1/4
- at:
- Clients
1/11
The green dot is a request moving through the system.
Step by step
- 1Gateway authenticates and rate limits
- 2Scheduler batches requests
- 3GPU workers prefill and decode
- 4Tokens stream back
Where it is used
API providers.
Watch out for
GPU cost and queueing during bursts.