Practice
Learn
← Quit
0 / 0 correct
System Design
Hard
1 of 515
Ticket booking (concert seats): how do you prevent double-booking under heavy contention?
A
Hold seats with a short-lived reservation (e.g. 10 min) via a conditional update or unique constraint, then confirm on payment
B
Lock the whole table for every booking
C
Let everyone book and refund duplicates
D
Check availability, then insert the booking without constraints