Skip to content
StackDecode
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.

10.0.0.4Load balancerServer 11 totalServer 20 totalServer 30 total
  • 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

  1. 1Track backend capacity
  2. 2Send within limits
  3. 3Shed or queue the excess
  4. 4Update the model

Where it is used

Quota-limited backends.

Watch out for

Needs accurate load signals.

Related