System Design Atlas
Application system

Hotel inventory and room pricing

Two guests want to book the last available room night as part of a two-night stay.

Follow the design
Hotel model with visible rooms next to room card and reservation sign.

Business workflow

Two guests want to book the last available room night as part of a two-night stay. One hotel, one room category, full nights and a fixed offer in EUR without prepayment.

These questions are answered by the case

  • One hotel, one room category, full nights and a fixed offer in EUR without prepayment.
  • Each confirmed reservation atomically occupies all required nights; occupancy never exceeds the local inventory for its room category.

These questions remain open

  • Payment, taxes, overbooking policy, assignment of specific rooms and legally binding cancellation terms.
  1. Create an offer

    Category and nights are fixed.

  2. Reserve nights

    All nights are promised together.

  3. Manage the stay

    Stay is over.

Workflow with tasks and outcomes

Domain subsystems and their interactions

Two guests want to book the last available room night within a two-night stay. The domain system map combines offer, room-night inventory, reservation, stay completion.

User interfaceAccess and responsibilities

Guests choose their stay and price offer. The reservation team resolves missing confirmations and cancellations. Reception confirms arrival and completion. Platform operations monitors inventory reconciliation. The distribution channel submits external booking requests.

Requests and receive feedback
Reservation APIDomain subsystems
  • Offer

    Freezes price and validity for selected nights.

    Described in the design
  • Room-night inventory

    Tracks available room nights for each room category.

    Described in the design
  • Reservation

    Confirms all nights together and releases them once on cancellation.

    Described in the design
  • Stay completion

    Records arrival and documented completion of the stay.

    Described in the design
The tasks offer, room-night inventory, reservation, stay completion connect the main business workflow. Each confirmed reservation atomically occupies all required nights; occupancy never exceeds the local inventory for its room category.

Domain responsibilities

Two guests want to book the last available room night as part of a two-night stay.

Offer

Freezes price and validity for selected nights.

Room-night inventory

Tracks available room nights for each room category.

Reservation

Confirms all nights together and releases them once on cancellation.

Stay completion

Records arrival and documented completion of the stay.

Practical examples

Own fictitious example design. One hotel, one room category, full nights and a fixed offer in EUR without prepayment. A price offer is valid for 300 seconds; at exactly 300 seconds, a new confirmation is rejected. All figures and test goals are illustrative assumptions.