Bird
Raised Fist0

Why is it important to shard the search index in a large-scale search system?

hard🧠 Conceptual Q10 of Q15
LLD - Design — Library Management System
Why is it important to shard the search index in a large-scale search system?
ATo cache all queries on a single server
BTo encrypt the index for security
CTo reduce the number of keywords stored
DTo distribute data and queries across multiple servers for scalability
Step-by-Step Solution
Solution:
  1. Step 1: Understand sharding concept

    Sharding splits data into parts stored on different servers to handle large data volumes.
  2. Step 2: Identify benefit for search systems

    This allows parallel query processing and storage scaling, improving performance and capacity.
  3. Final Answer:

    To distribute data and queries across multiple servers for scalability -> Option D
  4. Quick Check:

    Sharding = data distribution for scalability [OK]
Quick Trick: Shard index to scale across servers [OK]
Common Mistakes:
MISTAKES
  • Confusing sharding with encryption
  • Thinking sharding reduces keywords
  • Assuming caching on one server scales

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes