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

Module 26 · System Design · Stripe · about 24 min to read

Watch: Idempotency keys: how a retry stops being a second charge
▶ VideoPlay it as a journeyTutor comes with a plan

Stripe, the case study

Everything
Everything · Open board

The whole shape at once: one card, one shopper, and every board below drawn as a single system.

Boards

Before you start. You need to know what a retry is: a computer that got no answer, so it asks again. That is the only background this note assumes. Everything else about moving money starts from zero.

Lesson 102 of 115 in System Design

The rest of this lesson 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.

In this lesson

  • 2010: seven lines of code, and a promise that only covers the easy half
  • The click that might be two charges
  • 1494: the notebook that never lies
  • The hold, and the two days it takes to become real money
  • The nightly check that catches the one mistake in ten million
  • 01 · The API & idempotency, in full
  • 02 · Money movement, as a state machine
  • 03 · The ledger, exactly
  • 04 · The card networks and the two-day lag
  • 05 · Manufacturing exactly-once
  • 06 · Choosing boring technology at scale
  • 07 · Everything after payments
  • Retrieval (cold, no peeking)

Terms it explains: idempotency key, ledger, debit, credit, reconciliation, API, unique constraint, shard, acquirer, card network, issuer, ISO 8583, tokenization, outbox.

Review System Design