System Design
8. Load Balancing and ScalabilityAnimated
Application Scaling
Growing application server capacity.
The idea
Stateless services scale by adding instances behind a balancer.
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
Scale the app tier by adding identical instances.
- step:
- 1/4
- at:
- Load balancer
1/8
The green dot is a request moving through the system.
Step by step
- 1Make the service stateless
- 2Containerise it
- 3Add instances
- 4Balance traffic
Where it is used
Web and API tiers.
Watch out for
The database often becomes the next bottleneck.