SpinTheMic
Pro

Interview practice question

One shard is overloaded

System Design · Databases · Intermediate

After sharding by date, the shard holding today's data is overloaded while the others are idle. What went wrong and how do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Monotonic shard key = write hot spot.
  • All new writes go to one shard.
  • Use hash of an ID instead.
  • Or composite key with date + hash bucket.
  • Keep date as sort key within shard.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics