All Questions
Scaling Writes medium

You decide to shard your 'Orders' database to scale writes. You choose `Order_Creation_Date` as the Shard Key. What is the major architectural risk of this choice?

  1. A It requires too much storage space.
  2. B It creates a 'Hot Partition' (Write Hotspot). All new orders naturally fall into the same shard (e.g., 'Today's Shard'), leaving older shards idle and failing to distribute write load.
  3. C Date fields cannot be indexed.
  4. D It prevents backing up the database.

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

Get the app

Related questions