Design a Ticket Booking System: The Whole Interview, From On-Sale Spike to Paid Seat
The ticket booking question is a contended-writes problem with a peak that dwarfs the average. Here is the full answer: the waiting room, seat holds with TTLs that survive races, the conditional update that replaces locks, the payment saga with a pivot, and how each foundation post plugs in.