---
title: "Under the hood of Booking.com’s search engine"
description: "Booking.com’s search engine generates personalised hotel offers at request time instead of precomputing and indexing every possible room/date/price combination, which would be combinatorially infeasible."
url: "https://swe.quest/articles/under-the-hood-of-booking-com-s-search-engine-3615517db8d733bb"
canonical: "https://medium.com/booking-com-development/under-the-hood-of-booking-coms-search-engine-556d45341e2c"
source: "Booking.com Engineering"
published: "2026-11-21"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["search","system-design","distributed-systems","databases","performance"]
---

# Under the hood of Booking.com’s search engine

A post on [Booking.com Engineering](https://swe.quest/sources/booking.md), published 2026-11-21, 7 min read, Case study. Original: [https://medium.com/booking-com-development/under-the-hood-of-booking-coms-search-engine-556d45341e2c](https://medium.com/booking-com-development/under-the-hood-of-booking-coms-search-engine-556d45341e2c)

## Summary

Booking.com’s search engine generates personalised hotel offers at request time instead of precomputing and indexing every possible room/date/price combination, which would be combinatorially infeasible. A single request stitches per-night availability, evaluates 1,000+ declarative pricing rules in memory, ranks thousands of offers in stages, and handles group bookings as a constrained knapsack-like problem. The system runs as a custom scatter-gather database: coordinator nodes fan searches out to data nodes storing data in RocksDB, with no network calls on the hot path. The accepted tradeoffs are brief availability inconsistency for faster search, full coverage at the cost of query skew, and low latency with complex logic in exchange for running replication and cluster health themselves.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- search and ranking basics ([easy posts on Search](https://swe.quest/tags/search.md?difficulty=easy))
- distributed systems basics ([easy posts on Distributed systems](https://swe.quest/tags/distributed-systems.md?difficulty=easy))
- key-value stores

## Keywords

Booking.com, RocksDB, EC2

## Related posts

- [How we selected the next vector database at Booking.com](https://swe.quest/articles/how-we-selected-the-next-vector-database-at-booking-com-464edc602538488f.md): Booking.com Data Science · 2026-08-11 · Medium · 8 min read · Vector search, Performance engineering, RAG & retrieval, ML platforms, Cost optimization
  Booking.com replaced its OpenSearch-backed internal Embedding Service with Weaviate after running its own production-shaped benchmark instead of trusting public comparisons.
- [What today's software owes to Bronze Age clocks](https://swe.quest/articles/what-today-s-software-owes-to-bronze-age-clocks-f1c84fb59510a8bf.md): PlanetScale · 2026-10-07 · Medium · 8 min read · Resilience, PostgreSQL, API design, Algorithms
  Leaky buckets, descended from Bronze Age water clocks, remain a cheap admission-control mechanism: a bucket stores only its last level and timestamp, so its current level can be computed lazily as max(0, level\_then − drain\_rate × elapsed).
- [Building a Retrieval Pipeline with Turso and Voyage AI](https://swe.quest/articles/building-a-retrieval-pipeline-with-turso-and-voyage-ai-d56063c4fe3f313b.md): Turso · 2026-07-15 · Medium · 10 min read · RAG & retrieval, Vector search, SQLite, AI agents, LLMs
  Turso's SQLite-compatible engine with native vector columns, paired with Voyage AI embedding and reranking models, replaces a multi-service RAG stack with a single embeddable database for agent retrieval and memory.
- [How Vinted Serves Personalised Search Autocomplete](https://swe.quest/articles/how-vinted-serves-personalised-search-autocomplete-60df7b0a636c3d2b.md): Vinted Engineering · 2026-04-22 · Medium · 22 min read · Search, Recommendations & ranking, Performance engineering, System design
  Vinted's autocomplete service runs on Vespa and serves 4,700 queries per second at 31 ms P99 over a pool of 125 million suggestions across 50+ country-language markets.
- [Building AI Search on Heroku](https://swe.quest/articles/building-ai-search-on-heroku-fdce052b7ed2fc31.md): Heroku Engineering · 2026-01-29 · Medium · 3 min read · RAG & retrieval, Vector search, PostgreSQL, Search, LLMs
  A reference RAG architecture on Heroku pairs pgvector cosine-similarity search (top 20 chunks) with a cross-encoder reranker (Cohere Rerank 3.5, top 5), so answers come from documents that actually address the query rather than ones that are merely semantically close.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
