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

Active-Passive Load Balancing

One live balancer and a standby.

The idea

The standby takes over via failover when the active one fails.

Watch it work

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

ClientsLoad balancerActive nodeStandby node
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Only the active node serves traffic.

step:
1/4
at:
Clients
1/11

The green dot is a request moving through the system.

Step by step

  1. 1Active handles traffic
  2. 2Standby monitors it
  3. 3On failure the standby takes over the address
  4. 4Traffic continues

Where it is used

Simple high availability.

Watch out for

The standby capacity sits idle.

Related