Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

System DesignIdempotency: retries

Charged twice

The reply never arrived. Did the money move, and what should the client do?

Twelve payments go out over a network that loses some requests and some replies. The client cannot tell a lost request from a lost reply, so it must decide what silence means. Each tab is one answer. Watch the amount charged drift above the amount owed.

Included with a plan

This lab is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

the lesson Charged Twice (idempotency & exactly-once)
The whole idea this lab came from, told start to finish.

on the path Module 2 of 32 in System Design: When the stalls must agree
The lessons, boards and videos around this lab, in reading order.

Board: Charged Twice

see also The Google File System, Kafka: a Distributed Messaging System for Log Processing, End-to-End Arguments in System Design, The Chubby lock service for loosely-coupled distributed systems and Conflict-free Replicated Data Types in Papers.