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.

Solution Blueprint

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

  1. Show a total price, including taxes and fees, before the traveller commits.
  2. Hold inventory with the supplier before taking payment, wherever the supplier allows it.
  3. Make every booking either fully confirmed or fully reversed, never stuck between the two.
  4. 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.

Search results with all-in prices and how fresh each price is.
Phone checkout: the room is held while the traveller pays, and a price change is shown before payment.
Staff recovery view showing every step of a booking and the safe next action.

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

  1. L1 StorefrontNext.jsSearch and resultsCheckoutServer-rendered results stay usable before scripts load on a slow connection.
  2. L2 SearchAvailability cacheRedisPrice snapshotsCached results carry their age, so the interface can say when a price needs refreshing.
  3. L3 Booking serviceNode.jsHold, pay, confirm sagaCompensation stepsEach step records its outcome, so a crash resumes or reverses rather than guessing.
  4. L4 Supplier adaptersRate limitsRetriesContract testsOne adapter per supplier hides its quirks and timeouts from the rest of the system.
  5. 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.

01 of 05State map

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.

Selling 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.