awesome-everything RU
↑ Back to the climb

Backend Architecture

Circuit breakers: free-recall review

Crux Free-recall prompts across the circuit-breaker unit. Answer each in your own words first, then reveal the model answer and compare.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at senior altitude — in orbit
◷ 13 min

Retrieval beats re-reading. For each prompt, say or write a full answer from memory before you open the model answer — the effort of recall is what makes the material stick.

Goal

Reconstruct the unit’s spine — why slow beats dead, the three-state machine, the trip condition, bulkheads, the timeout-and-fallback pair, and the fleet-scale failure modes — without looking back at the lessons.

Recall before you leave
  1. 01
    Why is a slow dependency more dangerous than a fully dead one, and what is a circuit breaker's core job?
  2. 02
    Describe the three states of a circuit breaker and the four transitions between them.
  3. 03
    What is the trip condition, and why is a minimum-volume floor essential?
  4. 04
    Why isn't a breaker enough on its own, what does a bulkhead add, and what is the thread-pool-vs-semaphore tradeoff?
  5. 05
    Why is a timeout the trigger and a fallback the answer, and why should graceful degradation be rare?
  6. 06
    How do breakers, retries, and shedding change when you scale from one process to a fleet?
Recap

If you could reconstruct each answer from memory, you hold the unit’s spine: slow beats dead because callers block and starve a shared pool; the three-state machine (closed counts, open rejects, half-open probes) fast-fails a sick dependency; the trip condition is a failure rate over a sliding window gated by a minimum-volume floor with slow counted as failure; a bulkhead isolates the budget per dependency where the reactive breaker cannot; a timeout makes a hang countable and a fallback decides what to return when open; and at fleet scale the dangers are per-instance state, retry amplification, herding probes, and uncoordinated shedding — each needing a fleet-level answer.

Continue the climb ↑Circuit breakers: code and config reading
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.