System Design
20. System Design Case StudiesAnimated
Hotel and Flight Booking System
Search and reserve limited inventory.
The idea
Search over cached availability, then reserve with strong consistency and holds.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Search queries cached availability.
- step:
- 1/4
- at:
- Traveller
1/9
The green dot is a request moving through the system.
Step by step
- 1Search cached availability
- 2Select an option
- 3Place a temporary hold
- 4Pay and confirm
Where it is used
Inventory design.
Watch out for
Overbooking and stale availability.