System Design
19. AI System Design and LLM InfrastructureAnimated
ML Model Serving Architecture
Serving predictions at scale.
The idea
Models sit behind an API with batching, caching, autoscaling and versioned deployments.
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
Requests enter through a gateway with auth and limits.
- step:
- 1/4
- at:
- Client
1/11
The green dot is a request moving through the system.
Step by step
- 1Load the model
- 2Receive a request
- 3Preprocess and predict
- 4Return and log
Where it is used
Real-time inference.
Watch out for
Cold starts and feature mismatch between training and serving.