System Design
8. Load Balancing and ScalabilityAnimated
Traffic Distribution
Deciding how requests are spread.
The idea
Methods include weights, canary percentages, geography and header rules.
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
A layer 7 balancer reads the HTTP request.
- step:
- 1/4
- at:
- Client
1/9
The green dot is a request moving through the system.
Step by step
- 1Define rules
- 2Assign weights
- 3Gradually shift traffic
- 4Observe and adjust
Where it is used
Releases and experiments.
Watch out for
A bad split can overload a small pool.