One click, two payments — System design

Customers write in saying they were charged twice for one purchase. Find out why it happens and stop it.

Learn the idea first

Idempotency keys: try the retry race yourself

All system design challenges