You build a ticket booking app.
Concert has 1000 seats.
Tickets go on sale at 10 AM.
10:00:00 AM - 50,000 users click "Book Now"
10:00:01 AM - 1000 seats available
10:00:02 AM - 2,847 bookings confirmed
1,847 people paid for seats that don't exist.
No overselling was supposed to happen.
It did anyway.
How do you design this to be bulletproof? 🤔