Sharding: The Story of One Service
summary
A team describes how they implemented sharding for a business-critical, 24/7 Ozon warehouse service without downtime after the database grew to multiple terabytes. The talk covers practical solutions, architectural trade-offs, and operational difficulties encountered during sharding—including challenges beyond choosing shard keys and schemas—to help teams building or operating high‑load systems.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 1:03Why we sharded
- 2:27Warehouse service overview
- 6:03Why sharding needed
- 8:11Sharding algorithm
- 10:36Poor distribution lessons
- 12:25Data growth miscalculation
- 13:49Live migration challenges
- 15:54Code-level sharding issues
- 20:51Optimizing DB interactions
- 23:17Multi-shard query handling
- 26:08Real-time config switching
- 28:13Sync vs async writes
- 31:03Monitoring observability
- 34:15Historical data migration
- 36:45Switching process steps
- 38:09Costs and alternatives
- 40:57CQRS read models
- 43:44Project timeline outcomes
- 45:27Key takeaways
- 47:12Q&A
