Semicolony ELI5 · comic

The circuit breaker.

A fuse that trips so a failing service can’t drag the rest down with it.

  1. Try again… again… again…
    caller failing
    1

    One service keeps calling a dependency that has started failing.

  2. watching failures
    2

    A breaker sits in the middle, watching the failure rate.

  3. Open. Stop calling.
    tripped — fail fast
    3

    Too many failures and it trips: calls stop, and they fail instantly instead.

  4. resting room to recover
    4

    Failing fast spares both sides — and gives the sick service room to recover.

  5. One probe…
    probe one test call
    5

    After a pause it lets a single test call through to check (half-open).

  6. closed — flowing again
    6

    Healthy again? It closes, and normal traffic resumes.

Trip the fuse, fail fast, let the sick service heal, then resume.
Semicolony semicolony.dev/eli5/circuit-breaker/comic
← All ELI5 explainers