Problem
Design a hotel booking system that handles room searches and guest reservations
- Serve millions of daily queries without hitting the authoritative database
- Enforce a single-winner guarantee for each room-night under concurrent holds
- Release abandoned inventory automatically once a short timeout expires
Key Test Points
- Two-step hold-then-confirm
- Row-level locking with SELECT FOR UPDATE
- Async availability sync pipeline
Spot an issue or have a suggestion?