Pattern 02 / DATA
Sharding (Horizontal Partitioning)
Use this when a single database growing beyond one machine’s write or storage limits.
- Pressure
- A single database growing beyond one machine’s write or storage limits
- Mechanism
- Partition rows by a shard key so each database owns a slice of the total dataset
- Toll
- Cross-shard queries, hot keys, and resharding are operationally painful
