Skip to content
StackDecode
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.

TravellerSearch serviceInventory + hol…PaymentNotifications
  • 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

  1. 1Search cached availability
  2. 2Select an option
  3. 3Place a temporary hold
  4. 4Pay and confirm

Where it is used

Inventory design.

Watch out for

Overbooking and stale availability.

Related