System Design Atlas

Hotel inventory and room pricing

01 / 10Worked example

Purpose and boundary

What responsibility does the reservation API take for a reservation, and which evidence originates outside the system?

Basic assumptions determine the responsibility of this example. We track reservation R-27; add room category K-27 and price offer A-27. These stable identifiers connect the technical views. Two guests want to book the last available room night within a two-night stay. One hotel, one room category, full nights and a fixed offer in EUR without prepayment.

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

Assumptions for the example case

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.

Responsibilities and external boundary

Context · Offer, nights and reservation

GuestsSeek offer and confirm stay
ReceiptConfirms arrival and completion

Hotel reservations

Reservation APIA reservation atomically occupies all required nights without exceeding inventory.
Distribution channelSend wishes and confirmations
Gäste → Reservierungs-APIConfirm the offer
Empfang → Reservierungs-APIArrival or completion
Vertriebskanal → Reservierungs-APIChannel request
Reservierungs-API → GästeConfirmed reservation

The booking is committed directly against the authoritative category-night inventory; external channels sell only through this confirmation path.

Two guests want to book the last available room night within a two-night stay. Actors outside, reservation API inside; distribution channel as its own external boundary.

The specific design scope

Example situation
Two guests want to book the last available room night as part of a two-night stay.
Scope
One hotel, one room category, full nights and a fixed offer in EUR without prepayment.
Excluded tasks
Payment, taxes, overbooking policy, assignment of specific rooms and legally binding cancellation terms.

Nights and price form a time-limited offer

Nights and price form a time-limited offer

Nights and price form a time-limited offer.

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. The exercise specifies the input and expected result.

Alternative considered
An extension to payment, taxes, overbooking policy, assignment of specific rooms and legally binding cancellation conditions requires further domain contracts.
Trade-off
The case initially answers only: a hotel, a room category, full nights and a fixed offer in EUR without advance payment.
Reassess
Additional need for payment, taxes, overbooking policy, assignment of specific rooms and legally binding cancellation conditions opens a new domain scope decision.

Try it yourself

Assign responsibility for the reservation, distribution channel and completion decision. Name one task outside the system boundary.

A hint for your attempt

Use the business guarantee and the explicitly limited scope.

Compare with a possible solution
Primary responsibility
Reservation API carries out reservation. The reservation team is responsible for the domain work; the platform operations team provides the technical processing.
External boundary
Distribution channel remains an external source of proof. Excluded is: payment, taxes, overbooking policy, assignment of specific rooms and legally binding cancellation conditions.

Apply to your project

What proof of reservation would arise in your own project outside of the application?

Next: All stay nights are agreed together.