Design Travel Booking Platform (Expedia/Booking.com)
Problem statement
Design a production-ready travel booking platform like Expedia, Booking.com, or Kayak with flight/hotel search, multi-step booking flows, real-time pricing, and payment integration.
Asked In
Key Challenges
- ·Multi-Step Booking Wizard: Search → Select → Details → Payment → Confirmation
- ·Real-time Pricing: Dynamic prices that change during booking requiring pre-payment verification
- ·Session & Cart Management: Hold inventory, handle timeouts (15-30 mins), and preserve state
- ·Form Orchestration: Complex validation across multiple steps (e.g., passports, passenger ages)
- ·Payment Integration: Secure checkout, idempotency, and graceful error recovery on failure
2-Minute Answer — High-Level TL;DR
Read this before your interview
HLD Interview Focus
I would design travel booking as a held session, not a multi-page form. Search returns itineraries; selecting one creates a BookingSession with expiresAt and a quoted total. Every step after that — passengers, extras, payment — is a distinct URL under that sessionId so refresh and back work. A client state machine blocks illegal jumps (no payment without travelers). Before Stripe commits, I call verify-price: if the fare moved, halt and ask the user to accept the new total. A countdown from expiresAt warns before the hold dies; on expiry I keep the draft and offer restart search. Payment uses an idempotency key so retries never double-charge. The hard part is not the wizard chrome — it is price volatility, session TTL, and failing safely without erasing the user's typing.
My Approach: Building the Solution
How to think about this problem
I'll start from the booking journey the user actually feels — search, pick a fare that might change, fill passengers under a ticking hold, pay without surprises — then design a session-backed state machine with URL steps, a price-verification gate, and recovery paths for timeout and payment failure.
Why This Approach?
Most candidates draw five form screens and a Stripe button. That answer collapses when the interviewer says the fare rose $43 while the user typed passport numbers, or the tab refreshed on payment. Strong answers treat booking as inventory on a timer: sessionId is the product, verify-price is mandatory, and payment is never optimistic.
A travel hold is like a restaurant keeping a table for 20 minutes. The menu price on the chalkboard can change before you sit down. You do not seat the guest at the chef's table without checking the board again — and you never charge the card just because they walked toward the door. The wizard is the walk to the table; the session timer and verify-price gate are how you avoid an ugly surprise at the register.
Requirements: What Makes a Great Solution?
Clarify scope before designing anything
Requirements Exploration Questions
Ask your interviewer these questions to refine requirements
What booking types and flow?
- ·Flights (one-way, round-trip, multi-city)
- ·Hotels (date range, room types)
- ·Search → Select → Details → Extras → Payment → Confirmation
How do prices and inventory work?
- ·Real-time pricing (can change during booking)
- ·Price hold duration (e.g., 15-30 minutes typical TTL)
- ·Reconciliation when prices change before checkout
What are the payment and modification rules?
- ·Payment methods (Credit/debit, PayPal, Buy now, pay later)
- ·Can users go back and modify previous steps?
- ·Resume interrupted bookings
Functional Requirements
Must Have — MVP
- ✓Search flights/hotels with dates and passengers
- ✓Multi-step booking wizard with progress indicator
- ✓Real-time price updates and server-side verification
- ✓Session management with timeout handling (15-30 min holds)
- ✓Passenger details form with complex validation
- ✓Payment integration and confirmation screen
Advanced (If Time Permits)
- +Multi-city/multi-leg journeys
- +Seat/room selection and add-ons (Extras)
- +Resume interrupted bookings via Session ID
- +Offline draft queue for incomplete bookings
Non-Functional Requirements
Performance
- ·Search results in < 3 seconds
- ·Step transitions < 500ms (Prefetching next step)
- ·Form validation in real-time (< 100ms)
- ·Price verification < 1s (Pre-payment API call)
Reliability
- ·Handle network failures gracefully with idempotency keys
- ·Preserve state across refreshes (SessionStorage)
- ·PCI compliance for payments and secure form handling
Accessibility & Observability
- ·WCAG 2.1 AA baseline (Full keyboard navigation)
- ·Screen reader-friendly labels and announcements for price changes
- ·Track p95 latency, error rate, and retry rate
The full solution is part of HelloFrontend Pro
The question above is free to read in full. Upgrade to unlock the interactive workspace and the senior-level walkthrough that go with it.
- Full RADIO-framework walkthrough with architecture diagrams
- Data model, API design, and rendering strategy trade-offs
- Performance, accessibility, and offline sections plus a model answer
Already a member? Log in to open the workspace.