System Design
1. System Design Fundamentals12. Reliability and Fault ToleranceAnimated
Fault Tolerance
The ability to keep working when components fail.
The idea
A fault-tolerant system hides failures from users by detecting them and routing around them, using replicas, retries and failover.
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
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
- 1Replicate critical components
- 2Detect failures with health checks
- 3Route traffic away from the failed part
- 4Repair or replace it in the background
Where it is used
Databases, payment systems, anything that cannot stop.
Watch out for
Untested failover. Practise failures regularly.