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
An orders database is split across 4 shards; each can answer about 2,500 queries per second. The app sends 4,000 queries per second: 40% are new orders (writes), and half the reads ask for recent orders. The shard key is the order date. 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
Spread the load
At 4,000 queries/s or more, keep the busiest shard under 60% of its capacity and errors under 0.5% for 15 seconds.
An orders database is split across 4 shards; each can answer about 2,500 queries per second. The app sends 4,000 queries per second: 40% are new orders (writes), and half the reads ask for recent orders. The shard key is the order date. All numbers are an illustrative model.
Illustrative model: rates, queues and latency follow simple queueing rules, not a production benchmark.