Caffeinated Coder
Book an appointment
Lesson 19 · At scale

Sharding

When one table outgrows one server, sharding splits its rows across several servers, called shards. Follow six orders as a simple rule, customer_id % 3, sends each row to one shard; watch a query with the shard key go to one shard while a query without it must ask them all; then see what a hot key and a new shard cost.

12 min10 steps5 questionsAdvanced
Fig 19 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.