What is cascading failure, and how do you prevent it in a distributed system?
Last updated
A cascading failure is when one slow or failing service exhausts its callers' threads and connections, spreading failure up the dependency graph. Retries amplify it.
Prevent with timeouts, circuit breakers (stop calling a failing service and fail fast), and bulkheads (isolated resource pools per dependency).
Also use rate limiting and load shedding, bounded retries with backoff and jitter, and fallbacks to contain the blast radius.
- 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