PlanetScaleยท
Why you shouldn't do application-level sharding
TL;DR
Sharding a growing database in application code looks simple at first, but expansion brings risky data moves, harder queries, overloaded shards, and cross-shard transactions. Using a growing marketplace as an example, the post shows how each workaround adds routing rules, lookup services, and coordination work, turning a quick scaling fix into a complex system the application team must maintain.
Relevant links
- Ahmed Darwichplanetscale.com
- @ AhmedDarwichx.com
- What is database sharding and how does it work?planetscale.com
- Making 768 servers look like 1planetscale.com
- Intercomwww.intercom.com
- Another way, used by Instagram,media.postgresql.org
- At Etsywww.etsy.com
- hot shardplanetscale.com
- Slackslack.engineering
- Notionwww.notion.com
- Vitessplanetscale.com
- Nekiplanetscale.com