Billed twice or not at all — System design

An ad platform bills each click, but after worker crashes a few are charged twice and a few never. Make every click count once.

Learn the idea first

Idempotency keys: try the retry race yourself

All system design challenges