# Circuit Breaker Pattern

Record: `arch:circuit-breaker-pattern`
Kind: pattern
Layer: [Correctness Core](https://banes-lab.com/records/layer/correctness-core.md)
Severity: contextual
Scope: dependency call, service
Canonical: https://banes-lab.com/ontology#arch-circuit-breaker-pattern

## Repair

- Refactored by: Add Circuit Breaker
- Detected by: high failure dependency calls without breaker
- Violated by: continuing calls to failing dependency
- Measured by: breaker trip rate, downstream error rate
- Enforced by: [resilience policy](https://banes-lab.com/records/algo/resilience-policy.md)

## requires

- [Failure Threshold](https://banes-lab.com/records/lex/failure-threshold.md)
- [Fallback](https://banes-lab.com/records/lex/fallback.md)

## reinforces

- [Fault Tolerance](https://banes-lab.com/records/arch/fault-tolerance.md)
- [Backpressure](https://banes-lab.com/records/arch/backpressure.md)

## enables

- [Cascading Failure Prevention](https://banes-lab.com/records/lex/cascading-failure-prevention.md)

## conflicts-with

- [Unbounded Retry](https://banes-lab.com/records/lex/unbounded-retry.md)
- [Retry Storm](https://banes-lab.com/records/arch/retry-storm.md)

## tensions-with

- [Availability of Degraded Dependency](https://banes-lab.com/records/lex/availability-of-degraded-dependency.md)

## tensions

- [Circuit Breaker Pattern Availability of Degraded Dependency](https://banes-lab.com/records/tension/availability-of-degraded-dependency-circuit-breaker-pattern.md)
