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

Fallback Mechanisms

Alternative behaviour when something fails.

The idea

Default values, cached data or a secondary service replace the failed call.

Watch it work

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

UserWeb appRecommendationsProduct data
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

The page needs product data and recommendations.

step:
1/4
at:
User
1/11

The green dot is a request moving through the system.

Step by step

  1. 1Call the primary
  2. 2On failure use the fallback
  3. 3Mark the result as degraded
  4. 4Retry later

Where it is used

Resilient APIs.

Watch out for

A fallback that is itself untested may fail.

Related