The last seat, the last charge — System design

A ticket site holds a seat while the card is charged, and support hears both "I paid and lost my seat" and the reverse. Fix both complaints.

Learn the idea first

Idempotency keys: try the retry race yourself

All system design challenges