Circuit Breaker Pattern: Preventing Cascading Failures in Distributed Systems
Imagine an e-commerce application. The Order Service depends on the Payment Service to process orders. Now, the Payment Service becomes unavailable. The Order Service keeps sending requests. Each request waits for a timeout, fails, and may be retried.