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

Fault Injection

Deliberately causing faults.

The idea

Insert errors, delays or crashes to test handling.

Watch it work

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

Chaos toolService AService BMonitoring
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Define a steady-state hypothesis: "checkout works".

step:
1/4
at:
Monitoring
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Choose a fault
  2. 2Inject it
  3. 3Watch behaviour
  4. 4Compare to expectations

Where it is used

Testing error paths.

Watch out for

Unplanned side effects in shared environments.

Related