System Design
8. Load Balancing and ScalabilityAnimated
Rate-Aware Load Balancing
Balancing while respecting rate limits and capacity.
The idea
The balancer considers each backend's capacity or remaining quota, not only counts.
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: lowest expected response time (fast server and short queue).
- request:
- 1
- server:
- 1
1/14
The white bar inside each server is its current number of active connections.
Step by step
- 1Track backend capacity
- 2Send within limits
- 3Shed or queue the excess
- 4Update the model
Where it is used
Quota-limited backends.
Watch out for
Needs accurate load signals.