System Design
8. Load Balancing and ScalabilityAnimated
Weighted Round Robin
Round robin with more turns for stronger servers.
The idea
Each server has a weight proportional to its capacity.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- chosen path
- active connections (bar)
Request 1 goes to server 1: server 1 has weight 3, so it gets that many turns.
- request:
- 1
- server:
- 1
1/14
The white bar inside each server is its current number of active connections.
Step by step
- 1Assign weights
- 2Servers get turns by weight
- 3Stronger servers get more requests
- 4Adjust weights as needed
Where it is used
Mixed hardware.
Watch out for
Weights are static and may not match real load.