Distributing Work

Sharding Sharding comes up when a single database won&rsquo;t work (e.g., hit storage limits, write throughput limits, or read throughput limits) and you need to split your data across multiple independent servers. For a user-centric social media app, sharding by user_id means all of a user&rsquo;s posts, likes, and comments live on one shard. User-scoped queries are fast, but &ldquo;trending…