Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1141

Circuit Breaker Pattern

Circuit Breaker Pattern
BusinessHigh supportManagement
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

When a service fails (e.g., response timeout) and the failure rate reaches a threshold, the system automatically cuts off calls to that service (trips the circuit), directly returning an error or fallback, giving the faulty service time to breathe and recover, preventing the entire system from collapsing.

Definition

When a service fails (e.g., response timeout) and the failure rate reaches a threshold, the system automatically cuts off calls to that service (trips the circuit), directly returning an error or fallback, giving the faulty service time to breathe and recover, preventing the entire system from collapsing. Scaffold use: stop-loss and self-healing. In investment or personal energy management, a 'circuit breaker' must be set. For example: force liquidation when losses reach 20%; force rest after 3 consecutive days of overtime. Prevent local failures from dragging down the whole.

How to use

Stop-loss and self-healing. In investment or personal energy management, a 'circuit breaker' must be set. For example: force liquidation when losses reach 20%; force rest after 3 consecutive days of overtime. Prevent local failures from dragging down the whole.

Mechanism

A distributed system design pattern where calls to a remote service 'trip' and fail fast when consecutive failures reach a threshold, avoiding thread/resource exhaustion from slow calls, and giving the dependency time to recover before half-open probing.

Practice

In progress 0/5

Practice this model in one real situation:

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

Cases

  • When microservice calls to downstream time out frequently, circuit breaker protects itself; payment gateway failure switches to fallback.

Common pitfalls

  • Incorrect threshold settings cause either premature tripping or delayed tripping; after tripping, if no degradation is in place, the whole still fails.
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