Module 14 6 lessons 91 min
Partitioning in depth
Sharding by city works until Mumbai has ten times the orders of any other city, and adding a shard means moving half the data.
In this module
5 Read · 1 Lab
- 14.1Range vs hash partitioningHow each method splits the data, and what it does to your queries.Read12 min
- 14.2Consistent hashingAdd a machine and move only a small part of the data.Read15 min
- 14.3Hot keysWhen one key gets most of the traffic, like a very popular restaurant.Read12 min
- 14.4Queries across shardsSecondary indexes, scatter-gather and request routing.Read12 min
- 14.5IDs without a central counterSnowflake IDs, UUIDs, and why order sometimes matters.Read10 min
- 14.6Lab: Reshard without downtimeAdd shards under live traffic without losing orders.Lab30 min