Skip to content

The three states

Closed: normal operation. Open: fast-fail. Half-open: testing the waters.

State

Behaviour

Exit condition

Closed

Calls pass, counters accumulate

Open on failures > threshold

Open

Calls rejected immediately (fast-fail)

Closed→Half-open after cooldown

Half-open

Limited test calls allowed

Closed if tests succeed, Open if they fail