LESSON 23.11 · 4 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Idempotency keys
Eight payments retry a flaky tool, and an idempotency key stops double charges.
Pro lesson. Stage 1 is free to watch. Pro opens all 4 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 23.11 · KEY BAYNO KEY · 9 CHARGES · $244 FOR $204
01
Stage 1 of 4 · Duplicate charges
A lost reply makes the agent send payment 2 again. Without a key, the tool charges it twice.
Explain it simply
Each lane is one payment, and time runs to the right. The tool charges payment 2, but its reply is lost. The agent times out and sends the call again. The tool cannot tell it is the same payment, so it charges twice.
Eight lanes, one per payment, with no key. Payment 2 is charged twice. In all, the tool takes 244 dollars for 204 dollars owed.
calls and keyswaits and key expiryfailures and extra chargespaid, charged and saved replies
Toy: 8 payments · a tool that fails 30% of calls · 4 attempts with backoff and jitter
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Every call the tool runs for a payment adds one charge.
PRO LESSON · YOU WATCHED STAGE 1 OF 4
Unlock the full explainer
- 3 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.