Last Minute Notes
Github
Docs
Learn
Search
⌘
K
@sayanstwt
Lessons
Learn
/
System Design
/
Data & Storage
Sharding
8 min
Intermediate
8 steps
Split data across machines and choose a key that will not hot-spot.
Nodes
1
Holds
all data
Write rate
at the limit
App
Primary
holds everything
size + writes 96%
u1
u2
u3
u4
+8
write
write
write
write
write
shard when one primary cannot hold the data or the writes, not before
request
response
data
In this lesson
Step 1 of 8
1
The problem
2
Split it
3
Range
4
Hash
5
Shard key
6
Cross-shard
7
Hot keys
8
Recap