Reliabilityfallback valuemodel fallbackprovider fallback

Fallback

Definition

A fallback is the behaviour a caller switches to when a dependency call fails, times out or is rejected by a circuit breaker or bulkhead, so the user still gets a useful, if reduced, answer.

In practice

Fallbacks are how graceful degradation is implemented call by call: a stale cached price, an empty recommendations list, a static default, or a request routed to a second LLM provider when the first returns 429 or 503. Paired with fast rejection, they turn a dependency outage into a small quality drop instead of an error page.

A fallback must be cheaper and more reliable than the path it replaces. One that calls another fragile service, or shares the same database, fails together with the primary. Fallbacks that are never exercised rot, so test them in game days. Some operations, such as charging a card, have no honest fallback and should fail clearly.

Example

An LLM gateway sends chat requests to the primary model and, on 429 or a 5-second timeout, retries once on a smaller fallback model, tagging the response with model=fallback for monitoring.