Circuit Breaker

noun

say it: “SUR-kit BRAY-ker” /ˈsɜrkɪt ˈbreɪkər/

A guard that stops calling a failing service for a while after repeated failures, answering at once instead, then lets one trial call through.

What is a circuit breaker, in code?

A circuit breaker sits between your code and a service it calls. Closed, it lets calls through and counts failures in a row; after too many (say 3), it opens and answers at once with a fallback, without calling. After a wait (say 30 seconds) it goes half-open and lets one trial call through: if it works, the breaker closes; if not, it opens again.

In a sentence

  • “The circuit breaker opened after three failed calls, so the screens stopped freezing while the weather service was down.”

Level: Freelancer · More Software Development terms at this level

Updated