Pathway 02 · zero → professional

Distributed Systems

One wallet service, from one machine to three in two data centres

A payments wallet carries all ten chapters. It starts on one server; then a transfer times out and nobody knows whether it happened. From there we make retries safe, order updates without trusting clocks, replicate balances, elect a leader, fence the old one, move money between shards, and test whether any of it holds. System Design leans on every chapter here.

10 chapters~120 min total21 links out0 accounts required
The chapters — one page each
  1. 01Partial failureAsha sends ₹500 and the call times out. Did the money move? Across a network, the honest answer is often “not known yet”.
  2. 02Talking between machinesMaking the transfer call safe to retry: idempotency keys, deadlines, errors the caller can act on, and messages that survive a rolling deploy.
  3. 03Time and orderA freeze and an unfreeze land on two machines whose clocks disagree. Order has to come from messages, and sometimes there is none to find.
  4. 04Replication and consistencyThree copies of the wallet in two data centres. Asha sends money, refreshes, and sees her old balance.
  5. 05Broadcast, gossip and ordering guaranteesEvery balance change has several listeners. Each needs a different guarantee about missing and reordered events, at a different price.
  6. 06ConsensusThe wallet’s replicas choose their own leader, never two at once, and never forget a transfer they acknowledged.
  7. 07Membership, failure detection and coordinationA wallet server pauses for fifteen seconds, loses its lease, and wakes up still acting as owner. The storage has to say no.
  8. 08Distributed transactionsAsha is on shard 3 and Ravi on shard 11. Moving ₹500 between them means two-phase commit or a saga, and each has a price.
  9. 09Systems that shippedDynamo, Spanner, Kafka, etcd and MapReduce read as sets of choices, and what the wallet would get from building on each.
  10. 10Breaking it on purposeTurning the wallet’s guarantees into checks, then trying to break them with recorded histories, injected faults, simulation and model checking.