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.
- 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
- 1Active serves traffic
- 2Passive replicates state
- 3On failure promote passive
- 4Redirect traffic
Where it is used
Simpler failover.
Watch out for
Idle capacity costs money and may be untested.