All Questions
Sharding medium

In a sharded system, why is 'Denormalization' (purposefully duplicating data) considered a standard performance optimization?

  1. A To ensure that every database request is satisfied by a single physical shard, thereby avoiding the massive latency penalty of cross-shard network communication.
  2. B To take advantage of the fact that storage space is inexpensive compared to the cost of high-speed CPU cycles.
  3. C To provide an additional layer of security by storing fragments of the same information in multiple locations.
  4. D To increase the total number of secondary indexes that can be maintained by each shard.

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

Get the app

Related questions