Sharding in system design: choosing a shard key, four case studies and resharding
When you really need to shard, range vs hash vs consistent hashing, the three properties of a good shard key, four case studies (orders, payment transactions, device metrics, Discord messages), global IDs, cross-shard queries, and resharding without downtime using logical shards.