Lesson 14 of 15
15. Sharding

Sources

3 min read+10 XP

Source notes

  • Logical shards mapped onto fewer physical servers, and shard IDs inside object IDs: Instagram Engineering, "Sharding & IDs at Instagram", 2012.
  • Range-partitioned tablets that split as they grow: Fay Chang et al., "Bigtable: A Distributed Storage System for Structured Data", OSDI 2006. Hash-partitioned rings: DeCandia et al., "Dynamo", SOSP 2007, and Apache Cassandra documentation.
  • Redis Cluster's 16,384 hash slots: Redis Cluster specification.
  • Vitess (sharding and resharding for MySQL) and Citus (distributed PostgreSQL): project documentation.
  • All bookstore numbers are illustrative assumptions; arithmetic computed 2026-10-08.
  • Level 3 and Level 4 code: tested 2026-10-08 (code/ch15_sharding.py, all checks pass).