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

ClientL7 balancer/api servers/images servers/web servers
  • 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

  1. 1Define rules
  2. 2Assign weights
  3. 3Gradually shift traffic
  4. 4Observe and adjust

Where it is used

Releases and experiments.

Watch out for

A bad split can overload a small pool.

Related