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

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

  1. 1Assign weights
  2. 2Servers get turns by weight
  3. 3Stronger servers get more requests
  4. 4Adjust weights as needed

Where it is used

Mixed hardware.

Watch out for

Weights are static and may not match real load.

Related