Skip to content
StackDecode
System Design
12. Reliability and Fault ToleranceAnimated

Active-Passive Architecture

One site serves while another waits.

The idea

The passive site is ready to take over, but idle until needed.

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 serves traffic
  2. 2Passive replicates state
  3. 3On failure promote passive
  4. 4Redirect traffic

Where it is used

Simpler failover.

Watch out for

Idle capacity costs money and may be untested.

Related