AlgoViz

Fallbacks

medium 30 min

A fallback is the answer you give when the first choice fails: a backup service, an older copy, a simpler result, a default, or an honest error.

Where it shows up

The same pattern appears across everyday software.

  • HTTP caches

    stale-if-error lets a CDN serve yesterday's page when the origin fails, with one header.

  • Netflix Hystrix

    Each wrapped call could name a fallback method that ran on an error, a timeout, a full pool or an open circuit.

  • AWS credentials on servers

    The Builders' Library describes how credentials are pushed to machines well before the old ones expire, so a failure of the issuing service does not matter at once.

  • Maps and mail apps

    They show the last data on the device when the network is gone, and mark what is waiting to be sent.

  • Online shops

    Pages drop reviews and personal lists under stress and keep search, product and checkout.

  • DNS

    RFC 8767 allows resolvers to answer with expired records when the authoritative servers cannot be reached.