Circuit Breaker Pattern

An API calls an unreliable payment service. After repeated failures, the circuit breaker opens to prevent cascading failures, then attempts recovery through a half-open state.

View interactive diagram