Log inStart free
LESSON 23.10 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Circuit breakers and fallbacks

A payment tool goes down, and a breaker and a fallback keep customers answered.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 23.10 · BREAKER BAY12 FAILED · 8 CALLS INTO THE OUTAGE
01
Stage 1 of 5 · Tool goes down
The tool is down from 2000 to 3500 ms. Calls keep going in: 8 each wait 500 ms for nothing.
Explain it simply

Each lane is one payment, and time runs to the right. Every payment comes back 3 times, once per round. In the red band the tool is down and never replies. Each call there waits the full 500 ms timeout and gets nothing.

Eight lanes, 24 calls. 8 calls go into the outage and time out after 500 ms. 12 of 24 requests fail.

callslimits, probe, savedfailures, outage, refusedpaid and charged
010002000300040005000mstool down 2000–3500 mspayment 1payment 2payment 3payment 4payment 5payment 6payment 7payment 8breakerno breakerfailures8 in a rowpayments over timewait lost = 8 × 500 ms = 4000 ms12 of 24 requests fail010002000300040005000mstool down 2000–3500 mspayment 1payment 2payment 3payment 4payment 5payment 6payment 7payment 8breakerno breakerfailures8 in a rowpayments over timewait lost = 8 × 500 ms = 4000 ms12 of 24 requests fail
Toy: 8 payments in 3 rounds · a tool that fails 30% of calls, down 2000–3500 ms
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
W=ndown⋅Tout\sy{w}{grad}{W} = \sy{n}{data}{n_{\text{down}}} \cdot \sy{t}{param}{T_{\text{out}}}
W=8⋅500=4000 msW = 8 \cdot 500 = 4000\ \text{ms}

The lost wait is the calls into the outage times the timeout.

Common mix-ups

MYTHA lower trip limit always makes the breaker safer.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With trip after 3 and a 300 ms cooldown, does the first probe find the tool working?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.