Problem
Design a reservation service where guests book specific tables for a time slot
- Derive availability from reservation intervals and a turnaround buffer instead of storing a boolean flag
- Prevent double-booking by performing an atomic re-check inside a concurrency guard before committing
- Match party sizes to tables using a Composite pattern and swappable allocation Strategy
Key Test Points
- Derived availability from reservations
- Composite pattern for table joins
- Strategy pattern for allocation
Spot an issue or have a suggestion?