circuit breaker

A wrapper around calls to another service that stops making calls for a while after repeated failures, so the failing service can recover.

In more detail

Closed is normal: calls go through and failures are counted. After too many failures it trips to Open and rejects calls instantly (failing fast) for a cool-off period. Then it moves to Half-Open and lets a few trial calls through; enough successes close it again, and any failure reopens it.

Related terms

Taught in

References