All Questions
Vector Search medium

A B2B search product serves 2,000 tenants. One tenant holds 30% of all vectors and runs heavy batch queries that spike p99 latency for everyone. Every query is scoped to a single tenant. Which sharding strategy fits?

  1. A Shard by tenant and give the large tenant dedicated shards, so its load is isolated and queries touch only its shards.
  2. B Shard by hash of document ID, which spreads every tenant evenly across nodes and so prevents any single tenant hotspot.
  3. C Keep one shared index and add read replicas behind the load balancer, since replicas absorb spikes without resharding.
  4. D Shard by each vector's nearest IVF centroid so similar documents colocate and most queries touch only a single shard.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions