Skip to content
StackDecode
System Design
8. Load Balancing and ScalabilityAnimated

Software Load Balancers

Load balancing in software on commodity servers.

The idea

NGINX, HAProxy and Envoy run on normal machines or containers and scale out cheaply.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

ClientsHAProxy / NGINXServer AServer B
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Software on ordinary servers or containers.

step:
1/3
at:
Clients
1/7

The green dot is a request moving through the system.

Step by step

  1. 1Deploy the balancer software
  2. 2Configure upstreams
  3. 3Add health checks
  4. 4Scale the balancers themselves

Where it is used

Cloud and container platforms.

Watch out for

You must operate and patch them.

Related