DevOps Dictionary

A straightforward reference for DevOps terms and concepts.

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

Circuit Breaker

Reliability

A Circuit Breaker is a safety switch in your code that stops calls to a dependency that keeps failing. While calls succeed, the switch stays closed and traffic passes. When errors or timeouts pass a set threshold (for example, 5 failures in a row), it opens and calls fail right away, which gives the dependency time to recover. After a pause it lets a few test calls through and closes again if they succeed.

Patent-style sketch of a Circuit Breaker: a caller machine is wired through an open knife switch labelled circuit breaker, with a failure counter dial, to a smoking failing service, and a dashed arrow marks a test call.

See also Dead Letter Queue (DLQ), Error Budget, gRPC Deadline, Incident Management, Mean Time Between Failures (MTBF), Mean Time to Recovery (MTTR).