Level 2: Data · L2.3 Partitioning / sharding & consistent hashing
Hot keys, secondary indexes and rebalancing
Mitigate hot partitions and compare local vs global indexes.
13 min · Pro
What you take away
- Hashing spreads keys, not traffic — one popular key is one partition however you hash it.
And 3 more inside the class, in Pro.
How the class is laid out
- The problem
- The simple version
- Fixing hot keys
- Local versus global secondary indexes
- Rebalancing without moving everything
- When to shard
- Range vs hash
- Consistent hashing
- Hot keys and indexes
- Rebalancing
- Check your understanding