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

Failover

Switching to a backup automatically.

The idea

A standby takes over when the active component fails.

Watch it work

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

ClientsVirtual IPPrimarySecondary
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Clients use one stable address.

step:
1/4
at:
Clients
1/11

The green dot is a request moving through the system.

Step by step

  1. 1Detect the failure
  2. 2Choose the standby
  3. 3Redirect traffic
  4. 4Repair the failed node

Where it is used

High availability.

Watch out for

Failover that has never been tested often fails.

Related