SpinTheMic
Pro

Explain it in 60 seconds

Range vs hash sharding

System Design · Databases · Intermediate

Compare range-based and hash-based sharding.

What a strong answer covers

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

  • Range: contiguous key ranges per shard.
  • Good for range scans, risk of hot spots.
  • Hash: hash(key) decides shard.
  • Even spread, poor range queries.
  • Directory-based as a third option.
Practise this topic

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

See all topics