Partitioning: Hash, Range, Hotspots & Rebalancing
Split data across machines without creating hot partitions. Lesson 6 of Level 8: Data-Intensive Systems. Based on DDIA.
Level 8 · Data-Intensive Systems · Lesson 6 of 15
Split data across machines without creating hot partitions.
Continue learning
- Replication Lag: When Your Own Write Disappears — Previous lesson
- Transactions & What ACID Actually Promises — Next lesson
- Level 8: Data-Intensive Systems — Back to the level
Try it hands-on
- Consistent Hashing Ring — Place keys on a hash ring, add or remove servers, toggle virtual nodes, and compare key movement with modulo hashing.
- Hash vs Range Partitioning & Hotspots — Distribute orders by range and by hash, then simulate a celebrity seller and watch a hot partition form.
- Database Internals Lab — Storage engines, indexes, replication and partitioning.
All lessons in Data Systems
- Storage Engines: B-Trees vs LSM-Trees
- Indexes: Fast Reads, Slower Writes
- Caching: Speed at the Cost of Truth
- Replication: Leaders, Followers & Failover
- Replication Lag: When Your Own Write Disappears
- Partitioning: Hash, Range, Hotspots & Rebalancing
- Transactions & What ACID Actually Promises
- Isolation Levels: Dirty Reads to Serializable
- Lost Updates: Optimistic vs Pessimistic Locking
- The Trouble With Distributed Systems
- Consistency Models, CAP & Consensus
- Logs & Kafka: Partitions, Offsets and Ordering
- Consumer Groups & Delivery Semantics
- Batch vs Stream Processing & Data Pipelines
- Event Sourcing & CQRS