Chapter 7. Sharding and Index Partitioning
Objective: Learn how to scale search horizontally using shard design, routing strategies, and segment-aware partitioning.
Up to this point, the analysis of search and retrieval systems has relied on a critical but implicit assumption: the index exists as a single logical unit. Even as concurrency, durability, and performance tradeoffs in the write path were explored, the discussion assumed a unified segment space governed by a single lifecycle. This assumption is intentional. A system must first achieve correctness, performance, and durability in isolation before it can be scaled outward.
Chapter 7 intentionally challenges this foundational assumption.
Horizontal scaling does not introduce a new indexing model, replace segments, alter scoring logic, or discard previously established durability boundaries. Instead, it raises a more nuanced and challenging question: how do the guarantees defined for a single index persist when the index is partitioned ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access