Advertisement
Same keyspace, different shard strategies. Watch the distribution.
What you're seeing
Hash: hash(key) % N. Even distribution; range queries fan out.
Range: split keyspace by ranges (A-F → shard 0). Range queries fast; risk of hot shards (recent IDs all on one).
Geographic: by geo proximity. Low latency to nearest shard; data sovereignty.
★ KEY TAKEAWAY
Hash shards evenly but breaks range queries. Range shards keep locality but risk hot shards. Geo shards reduce latency but skew load.
▶ WHAT TO TRY
- Add 50 keys.
- Switch strategies — see distribution evenness via max/min ratio.