Travel Booking Engine
The price you saw is the price you pay.
A blueprint for a booking engine that searches, holds and books across changing inventory, with clear prices and a checkout that survives slow connections.
The room was available on the search page. It was gone by the payment page. Supplier availability is cached, prices move between search and checkout, and taxes or fees appear only at the end. When a payment succeeds but the supplier booking fails, a traveller holds a receipt for a trip that does not exist.
Who it is for
Tour operators, hotel groups and travel agencies selling rooms, tours or packages from supplier systems that change price and availability by the minute, often to customers on a phone abroad.
- Travellers comparing options on a phone, sometimes on hotel wifi
- Reservations staff fixing bookings that failed half way
- Product managers loading new tours and seasonal prices
What it sets out to do
- Show a total price, including taxes and fees, before the traveller commits.
- Hold inventory with the supplier before taking payment, wherever the supplier allows it.
- Make every booking either fully confirmed or fully reversed, never stuck between the two.
- Keep search and checkout quick on a mid-range phone over a weak connection.
The main screens
Drawn to show how each screen works, not captured from a live product.
Architecture
How the pieces fit
Search is fast and approximate, booking is slow and exact. The engine keeps them apart, and a booking service owns every step that touches money or a supplier.
Next.js · Node.js · PostgreSQL · Redis
- L1 StorefrontNext.jsSearch and resultsCheckoutServer-rendered results stay usable before scripts load on a slow connection.
- L2 SearchAvailability cacheRedisPrice snapshotsCached results carry their age, so the interface can say when a price needs refreshing.
- L3 Booking serviceNode.jsHold, pay, confirm sagaCompensation stepsEach step records its outcome, so a crash resumes or reverses rather than guessing.
- L4 Supplier adaptersRate limitsRetriesContract testsOne adapter per supplier hides its quirks and timeouts from the rest of the system.
- L5 RecordsPostgreSQLBooking ledgerPayment providerCard data stays with the provider; the ledger links every payment to a supplier reference.
Build order
How we would build it
The booking path is built and broken first, on one supplier and one product type, before search gets its polish.
Model the booking states
Agree hold, paid, confirmed, failed and reversed, and what moves a booking between them.
All-in pricing
Taxes and fees shown in the total from the results page onward, in the traveller’s currency.
Hold before pay
Inventory is held with the supplier for a short window while the traveller pays.
Re-price at checkout
If a price changed, the traveller sees the old and new total before agreeing.
Self-repairing bookings
A failed confirmation reverses the payment automatically and tells the traveller why.
Staff recovery view
Reservations staff see every step of a booking and can retry or refund safely.
More blueprints
All blueprintsSelling trips from inventory that moves?
Tell us which suppliers you work with and where bookings go wrong today. We will start with the booking path and make it honest before making it pretty.