Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M7434

Task Circuit Breaker

Task Circuit Breaker
BusinessmediumManagement
Included
account_tree

Updated 2026-08-10

Loading revision record…

Summary

An automatic stop on repeated task failures, modeled on an electrical fuse, used to prevent resource exhaustion and cascading failure.

Definition

The Task Circuit Breaker borrows the electrical fuse pattern: when a task or service exceeds a failure or timeout threshold within a window, the system stops attempting it for a period rather than continuing to retry. Its core proposition is that continuing to retry a failing dependency consumes the resources needed elsewhere and propagates the failure outward, so failing fast is the safer behavior. The key qualifier is recovery: the breaker must test cautiously before closing again, and something must serve users in the meantime through a degraded path.

How to use

- Threshold setting: define the failure rate and the time window that will trip the breaker. - Fast failure: stop retrying once tripped instead of consuming resources on a doomed call attempt. - Degraded path: decide in advance what users will get while the breaker is open.

Mechanism

A failing dependency responds slowly, so each retry holds resources for the full timeout and the backlog grows. When enough callers behave this way, the caller exhausts its own capacity and passes the failure to everything downstream. Stopping attempts early frees the resources, gives the failing component room to recover, and confines the damage to a defined area.

Practice

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Microservice architectures trip breakers on a failing dependency to prevent an outage from spreading.
  • A person who has failed the same task repeatedly pauses it and reviews the approach instead.

Common pitfalls

  • Tripping the breaker without any degraded path leaves users with a hard failure instead of a reduced service.
  • Setting the threshold too sensitively trips on normal noise, while setting it too loosely defeats the protection.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Circuit_breaker_design_patternZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS