Course

Distributed Systems: What Happens When Things Fail?

Partial failure, timeouts, backoff, idempotency, consistency and compensation, from first principles, in TypeScript, with every failure simulated on your own machine.

Final challenge

Implement and test a checkout flow that never charges or ships twice, while the network loses messages, replies arrive late, the provider is overloaded, customers double-click and your own process crashes. A chaos test checks it against ground truth across many seeded worlds. Passing it unlocks No duplicates. The brief and pass criteria are in Final: a checkout that never charges twice.

Reference

The lab is one project, labs/payflow/, that grows across all seven lessons into the final deliverable. Start with its README.md. No install needed: Node 22.18 or newer runs it directly.