What is the difference between a retry and a fallback strategy?
Last updated
A retry reattempts the same failed operation hoping it succeeds this time; a fallback abandons the failing operation and returns an alternative result. Retry pursues the correct answer; fallback accepts a degraded-but-acceptable one.
Retry:
Assumes the failure is transient and repeating the call will eventually work.
Adds latency and load; must be bounded and used on idempotent operations.
Fallback:
Provides a substitute when the operation fails: cached data, a default value, an empty list, or a simpler alternate path.
Enables graceful degradation so the user still gets a usable response.
How they combine: Typical chain: try the call, retry a couple of times on transient errors, and if it still fails (or the circuit is open), invoke the fallback.
- https://www.geeksforgeeks.org/system-design/top-microservices-interview-questions/
- https://www.geeksforgeeks.org/system-design/microservices-resilience-patterns/
- https://medium.com/@RichaShukla2111/saga-pattern-a-practical-guide-to-distributed-transactions-in-microservices-f4f0f27755f0
- https://dev.to/athulmr/making-rest-microservices-resilient-bulkhead-retry-circuit-breaker-in-practice-1mpl
- https://blog.bytebytego.com/p/6-more-microservices-interview-questions