All Questions
Scaling Reads hard

In a sharded database, what is the 'Scatter-Gather' problem associated with Global Secondary Indexes?

  1. A Reads are fast, writes are slow.
  2. B If you query by a field that is NOT the Shard Key, the query coordinator must send the request to *every single shard* and merge the results, causing high latency and CPU usage.
  3. C Indexes cannot be created on sharded tables.
  4. D Data becomes corrupted.

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

Get the app

Related questions