Frequent questions about fallbacks: how they differ from retries, when to add them, and why they must be tested.
- Fallback vs retry?
A retry repeats the same call. A fallback switches to a different path. Retries handle transient failures; fallbacks handle permanent ones.
- Fallback vs failover?
A failover switches to a standby instance of the same system. A fallback switches to a different, usually simpler, mechanism.
- Should every call have a fallback?
No. Fallbacks add complexity. Add them where the cost of failure is high and the alternative path is genuinely useful.
- Why test the fallback?
Because in production it fires only when the primary is already failing. A fallback tested only in prod is tested for the first time during an incident.