Sharding multiplies capacity only if the shard key spreads the load; a key that sends new or popular data to one place leaves one shard on fire while the rest sit idle.
Learn the idea first
A social app shards posts by a hash of the user id across 4 shards, each good for about 2,500 queries per second. One celebrity account gets 40% of all reads — and all its rows live on one shard. All numbers are an illustrative model.
Swipe the diagram sideways to see every tier →
Busiest shard
0%
Errors
0%
p95 latency
0 ms
Served
0/s
Survive the celebrity
With the celebrity getting 40% of traffic, keep the busiest shard under 70% and errors under 0.5% for 15 seconds.
A social app shards posts by a hash of the user id across 4 shards, each good for about 2,500 queries per second. One celebrity account gets 40% of all reads — and all its rows live on one shard. All numbers are an illustrative model.
Illustrative model: rates, queues and latency follow simple queueing rules, not a production benchmark.