Skip to content

How to design a good fallback

Test the fallback as often as the primary, make it observable, and never let the fallback become the default by accident.

Designing a fallback that helps

  1. Test it

    A fallback tested only in production is a fallback that will fail in production. Exercise it periodically, even when the primary is healthy.

  2. Make it observable

    Every fallback event is a metric. A fallback that fires silently hides a broken primary.

  3. Do not let it become the default

    A fallback that works too well can hide the primary's failure indefinitely. Add alerts.

  4. Keep it simple

    A fallback that depends on the same component that failed is not a fallback.