Log inStart free
LESSON 23.C2 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Making a flaky tool call reliable

Four layers keep 8 payments right through a flaky tool, an outage and a crash.


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

Go Pro · $8.25/mo
EXPLAINER · 23.C2 · RELIABILITY BAYPAID 3 · 3 · 3 OF 8 · TWICE $0 · $0 · $77
01
Stage 1 of 6 · One try
One batch of 8 payments runs on three days. One try pays 3 of 8 on the normal day.
Explain it simply

You see one batch of 8 payments on three days, with one lane per payment. With one try, the normal day pays 3. Four busy replies and a lost reply stop the rest. On the crash day, worker 2 starts the batch again and charges $77 twice.

One try. Paid: normal day 3 of 8, outage day 3, crash day 3.

callswaits, journalfailures, outage, crashok, chargesbackup call
025050075010001250150017502000mstool down 100–1100 ms✕ crashworker 2×2×2×2pay 1pay 2pay 3pay 4pay 5pay 6pay 7pay 8pay 1pay 2pay 3pay 4pay 5pay 6pay 7pay 8pay 1pay 2pay 3pay 4pay 5pay 6pay 7pay 8normal day3 of 8 paid · $0 charged twice · done 500 msoutage day3 of 8 paid · $0 charged twice · done 500 mscrash day3 of 8 paid · $77 charged twice · done 1060 msone tryeach call fails 3 times in 10 · normal day: 3 of 8 paid with one try025050075010001250150017502000mstool down 100–1100 ms✕ crashworker 2×2×2×2pay 1pay 2pay 3pay 4pay 5pay 6pay 7pay 8pay 1pay 2pay 3pay 4pay 5pay 6pay 7pay 8pay 1pay 2pay 3pay 4pay 5pay 6pay 7pay 8normal day3 of 8 paid · $0 charged twice · done 500 msoutage day3 of 8 paid · $0 charged twice · done 500 mscrash day3 of 8 paid · $77 charged twice · done 1060 msone tryeach call fails 3 times in 10 · normal day: 3 of 8 paid with one try
Toy: 8 payments · a tool that fails 30% of calls · three days: normal, outage, crash
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
P(fail)=0.2+0.1=0.3\sy{f}{grad}{P(\text{fail})} = 0.2 + 0.1 = 0.3
normal day: 3 of 8 paid\text{normal day: } 3 \text{ of } 8 \text{ paid}

Each call fails 3 times in 10: errors and lost replies.

Common mix-ups

MYTHWith all four layers, no card is charged twice.

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

Predict, then reveal
3 CHECKS · PRO
Q01If the outage lasts 1500 ms, how many payments do retries alone pay on the outage day?

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

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 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.