Scaling Databases
summary
An e-commerce startup that scales from one server to many hits real failures: Black Friday brings outages, multi-master creates write conflicts when two servers decrement the last ticket, and synchronous replicas can make an insert take 18 seconds. Common consistency surprises appear — 90–98% of apps see stale reads with async replicas — so first fix slow queries with explain and indexing (he mentions a MySQL explain service), then scale up, use single-writer read replicas, or shard by tenant (shard by tenant) and accept cross-shard joins, or use managed systems like Citus/PlanetScale and column stores or TimescaleDB for analytics.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 2:18Startup scaling struggles
- 4:03Optimize before scaling
- 5:29Multi-master replication limits
- 9:03Read replication issues
- 13:04Synchronous replication trade-offs
- 15:34Sharding explained
- 18:00Sharding complications
- 20:28Self-hosting sharding risks
- 21:50Why scaling is hard
- 23:35Analytics with columnar DBs
