
You’re responsible for an engineering initiative to make a high-traffic booking flow reliable under concurrent demand. Users occasionally see double-bookings, failed confirmations after payment, or inventory shown as available when it has already been reserved by someone else. The issue spans multiple services and only appears under load, so fixing it requires both technical judgment and disciplined execution.
How would you handle race conditions in a booking system?