Money that must not move twice — System design

A bank has to move every customer transfer exactly once, while a few very popular accounts take much of the traffic. Design it so no money is spent twice.

Learn the idea first

Idempotency keys: try the retry race yourself

All system design challenges