IMC·Software Engineer·Onsite - System Design / Architecture
- Design an in-memory hotel booking system (no database) that supports room search by date range, filtering by hotel/room type/price, booking, cancellation, modification, and listing a customer's bookings.
- Two clients try to book the same room at the same time. How do you handle that without a database?
- Persistence is out of scope, but if you had to snapshot and restore the in-memory state on restart, how would you approach it?
“I started with a basic map of room IDs to booking lists and thought I was on solid ground.”