Step-by-step answer
Core 60–90 min7 stepsBuild and break an idempotent outbox
An SQLite outbox with a unique key per logical send, four single-statement operations (enqueue, claim with a lease, complete, release), a fault-injecting fake email provider and a seeded 3,000-send simulation. Blind retry duplicates 6 emails, keyed retry none, and marking ambiguous sends complete silently loses 3.
Back to the exercise