Failure-mode guides
Every step of a debugging course starts from working code with flaws, and the flaws repeat: a check and a write that two requests can split, a retry that charges twice, an offset committed before the work it stands for. Each guide takes one failure mode: what it looks like, how to find it, how to fix it and how to prove the fix, then the steps whose starters hide it.
1Request boundariesWho is asking, what they may touch and what they may send: the tenant from the credential, a foreign record answered like a missing one, and every limit checked before anything is stored, fetched or called.199 steps · 107 coursesRead ›2Idempotent requestsA client that retries gets its first answer again, not a second effect: keys scoped to the tenant, the response recorded with the effect, and a reused key with a different body refused.73 steps · 67 coursesRead ›3One decision, one atomic stepA read, a comparison and a write sent as separate commands let two requests both pass. One Lua script, SET NX or a compare-and-set makes them one step no other client can split.97 steps · 93 coursesRead ›4Keys and lifetimesA key names everything its value depends on, and its expiry is decided in the write that creates it: windows that end on time, nothing that grows forever, and the few things that must never expire.84 steps · 78 coursesRead ›5Leases, claims and fencingWork owned for a while: a claim that carries a deadline, a renewal only the holder can make, an expired claim handed back once, and a completion from a replaced worker refused.21 steps · 19 coursesRead ›6Deadlines and retriesEvery attempt carries a deadline; only a failure that can succeed next time is retried, a bounded number of times, spaced out, with the same id; and a timeout is an unknown outcome, not a failure.112 steps · 107 coursesRead ›7When a dependency failsWhat to answer when the call cannot succeed: a breaker that stops calling, a fallback that says it is one, a degraded answer instead of a wrong one, and a failure never remembered as a result.63 steps · 59 coursesRead ›8Producing eventsThe key decides order, acks=all with an idempotent producer decides durability, the delivery report decides success and the outbox keeps what the broker refused; the event carries ids, not content.109 steps · 107 coursesRead ›9Consuming eventsEvery record can arrive twice: apply its effect, then commit its offset, and make the effect safe to apply again.31 steps · 29 coursesRead ›10Reads that tell the truthThe caller's own data, counters read live, caches keyed by everything that varies, no verdict below a minimum sample, pages by cursor, and a partial result marked partial.98 steps · 96 coursesRead ›11Model output is untrustedRetrieved text is data, not instructions; quotes are checked against their source; refusals and sampled or truncated answers are not cached; and a model decides alone only above a threshold.37 steps · 27 coursesRead ›