Hotel booking system: multi-source ingestion, date-range search and timed room holds

Quick Overview

Design a hotel booking system that ingests hotel data from hotel APIs, webhooks and crawling, searches available hotels by location and dates, and books rooms. Tests whether to store rooms per room or per room type, ingestion job coordination, a timed room hold with a countdown, payment and double-booking prevention.

Hotel booking system: multi-source ingestion, date-range search and timed room holds

Company: Rippling

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

Design a hotel booking system with three capabilities: 1. **Ingest hotel information from different sources:** hotels' own APIs, webhooks, and crawling. 2. **Search:** show the hotels available for a given location and check-in and check-out dates. 3. **Book:** let a user book a hotel room, from the booking page through payment. The interviewer goes deep immediately: the data model is requested while requirements are still being discussed, and each component is probed as soon as it appears. Every flow, including booking and payment, is expected to be covered, so pace yourself: in the reported round, depth on the earlier parts left the booking flow unfinished, and that was counted as a major gap. ### Clarifying Questions - Is this an aggregator that lists hotels whose rooms are also sold elsewhere, or the system of record for each hotel's inventory? Must a booking be confirmed with the hotel's own system? - Which sources provide what: static details (name, address, photos, room types) only, or also prices and availability? Are crawled hotels bookable, or listing-only? - Does a guest book a specific room or a room type, and can one booking include several rooms? - How is the guest charged: at booking, at the hotel, or authorized now and captured later? Are cancellations and refunds in scope? - What scale should the design target: number of hotels, searches per second at peak, bookings per day? - How fresh must search results be, and is it acceptable for a room shown as available to turn out unavailable when the guest tries to book it? ### Part 1: Data model and room storage Propose the core data model. In particular, decide whether hotel rooms should be stored as one row per physical room or one row per room type, and explain the trade-off. ```hint What the guest and the feeds see Compare what a guest chooses on the booking page, and what the hotel sources report, with what each storage shape needs in order to answer "is something free for every one of these nights". ``` #### What This Part Should Cover - Entities for hotels, room types or rooms, nightly availability and price, holds, bookings and source records - The per-room versus per-room-type choice argued from search cost, booking contention and what the sources provide - How availability for a multi-night stay is represented and checked ### Part 2: Search by location and dates Design the read path that returns available hotels for a location and a date range. ```hint Two different questions Separate "which hotels are near here" from "which of them have a room for every night of the stay", and consider what data each question needs and how often that data changes. ``` #### What This Part Should Cover - Geographic candidate retrieval and filtering - Availability and price for every night of the stay, fast enough for a search page - Freshness versus speed, and where availability is checked again before booking ### Part 3: Ingestion from hotel APIs, webhooks and crawling Design how hotel data enters the system from the three source types. Discuss whether a central coordinator should assign ingestion jobs to workers. ```hint Who starts the conversation For each source type, note who initiates an update, how it can fail or arrive out of order, and how far you trust it. Then ask what a coordinator would know that the workers could not. ``` #### What This Part Should Cover - Pull, push and crawl paths, each with its own reliability and rate-limit concerns - Normalizing to one schema and recognizing the same hotel across sources - Job scheduling and assignment with and without a central coordinator, and recovery from worker failure - Ordering, deduplication and reconciliation of updates ### Part 4: Booking flow and payment Walk through what happens after a user opens the booking page for a room: the room is held for the user for a limited time, shown as a countdown of about five minutes, while the user enters payment details and confirms, until the booking is confirmed or the hold runs out. ```hint Between the click and the confirmation List every way this can end (paid in time, card declined, user leaves, payment finishes late, hotel refuses) and decide what happens to the room's availability in each case. ``` #### What This Part Should Cover - A hold that prevents double booking and expires on its own - Payment that is never taken twice and stays consistent with the booking's state - Confirmation with the hotel where required, and failure handling at each step ### What a Strong Answer Covers - All three flows designed end to end within the time, with the booking flow not left open - No double booking under concurrency, and idempotent hold, booking and payment requests - Freshness and conflict rules for data arriving from different sources - Scaling for a read-heavy search path, failure handling and monitoring ### Follow-up Questions - A hotel's webhook reports a room type sold out while a user is holding one of its rooms. What happens to the hold and the booking? - The payment succeeds just after the hold expired. How do you resolve it? - Two sources describe the same hotel with different addresses and prices. How do you decide they are the same hotel, and which values do you show? - Search traffic for one city spikes before a holiday weekend. Which parts of the design absorb the load, and what degrades first?

Overview: Design a hotel booking system that ingests hotel data from hotel APIs, webhooks and crawling, searches available hotels by location and dates, and books rooms. Tests whether to store rooms per room or per room type, ingestion job coordination, a timed room hold with a countdown, payment and double-booking prevention.

Read the full Rippling Software Engineer interview experience this question came from

Rippling logo
Rippling
Nov 4, 2026
hardSoftware EngineerOnsiteSystem Design
2
0

Design a hotel booking system with three capabilities:

  1. Ingest hotel information from different sources: hotels' own APIs, webhooks, and crawling.
  2. Search: show the hotels available for a given location and check-in and check-out dates.
  3. Book: let a user book a hotel room, from the booking page through payment.

The interviewer goes deep immediately: the data model is requested while requirements are still being discussed, and each component is probed as soon as it appears. Every flow, including booking and payment, is expected to be covered, so pace yourself: in the reported round, depth on the earlier parts left the booking flow unfinished, and that was counted as a major gap.

Clarifying Questions Guidance

  • Is this an aggregator that lists hotels whose rooms are also sold elsewhere, or the system of record for each hotel's inventory? Must a booking be confirmed with the hotel's own system?
  • Which sources provide what: static details (name, address, photos, room types) only, or also prices and availability? Are crawled hotels bookable, or listing-only?
  • Does a guest book a specific room or a room type, and can one booking include several rooms?
  • How is the guest charged: at booking, at the hotel, or authorized now and captured later? Are cancellations and refunds in scope?
  • What scale should the design target: number of hotels, searches per second at peak, bookings per day?
  • How fresh must search results be, and is it acceptable for a room shown as available to turn out unavailable when the guest tries to book it?

Part 1: Data model and room storage

Propose the core data model. In particular, decide whether hotel rooms should be stored as one row per physical room or one row per room type, and explain the trade-off.

What This Part Should Cover Guidance

  • Entities for hotels, room types or rooms, nightly availability and price, holds, bookings and source records
  • The per-room versus per-room-type choice argued from search cost, booking contention and what the sources provide
  • How availability for a multi-night stay is represented and checked

Part 2: Search by location and dates

Design the read path that returns available hotels for a location and a date range.

What This Part Should Cover Guidance

  • Geographic candidate retrieval and filtering
  • Availability and price for every night of the stay, fast enough for a search page
  • Freshness versus speed, and where availability is checked again before booking

Part 3: Ingestion from hotel APIs, webhooks and crawling

Design how hotel data enters the system from the three source types. Discuss whether a central coordinator should assign ingestion jobs to workers.

What This Part Should Cover Guidance

  • Pull, push and crawl paths, each with its own reliability and rate-limit concerns
  • Normalizing to one schema and recognizing the same hotel across sources
  • Job scheduling and assignment with and without a central coordinator, and recovery from worker failure
  • Ordering, deduplication and reconciliation of updates

Part 4: Booking flow and payment

Walk through what happens after a user opens the booking page for a room: the room is held for the user for a limited time, shown as a countdown of about five minutes, while the user enters payment details and confirms, until the booking is confirmed or the hold runs out.

What This Part Should Cover Guidance

  • A hold that prevents double booking and expires on its own
  • Payment that is never taken twice and stays consistent with the booking's state
  • Confirmation with the hotel where required, and failure handling at each step

What a Strong Answer Covers Guidance

  • All three flows designed end to end within the time, with the booking flow not left open
  • No double booking under concurrency, and idempotent hold, booking and payment requests
  • Freshness and conflict rules for data arriving from different sources
  • Scaling for a read-heavy search path, failure handling and monitoring

Follow-up Questions Guidance

  • A hotel's webhook reports a room type sold out while a user is holding one of its rooms. What happens to the hold and the booking?
  • The payment succeeds just after the hold expired. How do you resolve it?
  • Two sources describe the same hotel with different addresses and prices. How do you decide they are the same hotel, and which values do you show?
  • Search traffic for one city spikes before a holiday weekend. Which parts of the design absorb the load, and what degrades first?