Skip to main content
InterviewHubPRO
Section Overview
Q32

Question 32 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

64%
Vector DBs & RAG (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

How do you scale Vector Databases horizontally across clusters?

senior LevelMost AskedDatabases & SQL

In Simple Words:

  • Sharding: Distributes vectors across multiple nodes using consistent hashing of document IDs. Queries fan out to all shards, and a coordinating node merges the top K results.
  • Replication: Maintains replica nodes for each shard to handle high query-per-second (QPS) read throughput and provide instant failover.
  • Tiered Storage: Keeps HNSW graphs and quantized vectors in memory, offloading raw vectors and payloads to object storage (AWS S3, MinIO).