Sharding
Definition
Sharding is a database partitioning technique that splits a large dataset into smaller, more manageable chunks called shards, which are then distributed across multiple servers. This approach helps improve performance and scalability by reducing the load on any single database instance.
Where you hear it
In system design discussions, database administration meetings, and when planning for high-traffic application infrastructure.
Examples
We need to implement sharding to handle the rapid growth of our user data.
The database team is sharding the logs table across four different servers to improve query speed.
The users table is sharded by country, so each server holds the customers of one region.
Common mistake
Thinking that sharding is a simple configuration change; it is a complex architectural decision that makes cross-shard queries and data consistency significantly harder to manage.
Don't confuse with
Sharding vs partitioning: partitioning usually splits a database within a single server or instance, while sharding distributes those partitions across multiple physical servers.
Say it at work
- In a meeting or chat
Before we hit database limits this holiday season, we should look into sharding our user table.
- In an email or ticket
Please review the proposed sharding strategy to ensure our cross-shard queries remain efficient.
Keep exploring
More in Architecture & Design