menu
The Circuit Breaker pattern is used in backend systems to prevent repeatedly calling a failing service, which helps to avoid cascading failures and allows the system to recover gracefully.

It works like an electric circuit breaker:
  • Closed: calls are allowed through.
  • Open: calls are blocked for a cooldown period after repeated failures.

This pattern helps protect your system from slowdowns and outages due to repeated calls to unstable services.