Backend, Data & Security More detail C · Industry convention Platform: Web

Circuit Breaker

A circuit breaker stops calls to a remote service that is likely to fail. Later, a few test calls check whether it recovered.

See how it works
You might call it circuit breaker patternservice breakerfail-fast breaker

See how it works

Original worked exampleCircuit Breaker
State & recoveryCircuit Breakerclosed -> failure threshold -> open -> cool-down -> half-open probe -> closed | open
PAYMENT CALLOPEN
FAILURE WINDOW5 / 510 seconds
FAST RESULTPayment is temporarily unavailableno remote call
Dependency rests30 s
KEEP SAFEOnly the named remote operation is protected by this breaker.RECOVERA small probe checks recovery before normal traffic returns.
closed -> failure threshold -> open -> cool-down -> half-open probe -> closed | openSRE
Circuit BreakerService resilience

Another example

Five payment failures open the breaker for 30 seconds. Checkout fails quickly with a clear message. One later probe succeeds and closes it.

Main parts

  1. 01Closed state
  2. 02Failure counter and window
  3. 03Open state
  4. 04Cool-down time
  5. 05Half-open probe
  6. 06Fallback and alert

Use it when

Use it around a remote dependency that stays slow or broken. Tune the threshold, open time, test traffic, fallback, and alerts.

Do not use it when

Do not use it for local validation errors. It does not replace retries. Retry handles brief faults; a breaker blocks likely failures.

Name used in code

closed -> failure threshold -> open -> cool-down -> half-open probe -> closed | open

Before you ship

Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.

Request you can copy

Outcome: Design or review Circuit Breaker for this system while keeping data correct, secure, and easy to operate. User context: Five payment failures open the breaker for 30 seconds. Checkout fails quickly with a clear message. One later probe succeeds and closes it. Technical concept or control: Circuit Breaker. Why it fits: Use it around a remote dependency that stays slow or broken. Tune the threshold, open time, test traffic, fallback, and alerts. Do not use it when: Do not use it for local validation errors. It does not replace retries. Retry handles brief faults; a breaker blocks likely failures. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): No single official standard controls the whole term. Its meaning may change across teams, platforms, or frameworks. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.

Check this request

Review the current use of Circuit Breaker. Definition: A circuit breaker stops calls to a remote service that is likely to fail. Later, a few test calls check whether it recovered. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, report the evidence you found, gaps, severity, and the smallest safe fix.

C
How official is this term?

Industry convention

People often use this term at work. The listed sources may support practice or limitations. They do not define every part of the term.

No single official standard controls the whole term. Its meaning may change across teams, platforms, or frameworks.

Scope
Cross-platform circuit-breaker convention; Azure documents one cloud pattern, not universal thresholds
Document status
stable
Checked on
2026-07-30

Evidence sources & scope

Authority source + Term reference · Microsoft Azure Architecture Center · stable Circuit Breaker pattern Scope: Azure guidance for circuit-breaker states, thresholds, recovery tests, and tradeoffs; not a universal state or threshold contract Role here: Direct term reference Source covers: canonical name, definition, semantics, implementation, usage guidance, avoidance guidance

Copy it yourself

The browser could not copy this. Select the request below and copy it yourself.