Explain the difference between a 'Retry with Backoff' and a 'Bulkhead' pattern, and when you would use one over the other.
Last updated
Retry with backoff is a recovery pattern: reattempt a failed idempotent call assuming the error is transient. Misused, it amplifies load on a down service.
Bulkhead is an isolation pattern: separate thread or connection pools per dependency so one slow dependency can't starve others (like ship compartments).
They solve different problems and are combined, along with timeouts and circuit breakers.
- https://dev.to/renukapatil/11-system-design-interview-questions-every-engineer-should-master-with-real-world-answers--iej
- https://aws.amazon.com/blogs/database/building-resilient-applications-design-patterns-for-handling-database-outages/
- https://learn.microsoft.com/en-us/azure/architecture/patterns/bulkhead
- https://learn.microsoft.com/en-us/azure/architecture/microservices/design/patterns
- https://dev.to/truongpx396/the-solution-architect-playbook-from-best-designer-to-best-bridge-1mkp
- https://codelit.io/blog/distributed-system-design-patterns
- https://layrs.me/course/hld/12-reliability-patterns/resiliency-overview/
- https://codefarm0.medium.com/resilience-patterns-in-distributed-systems-bc847ee2533c