What Is a Sharding Key?
A sharding key is the attribute a system hashes or ranges on to assign each row or object to a specific shard. Its choice controls how evenly data and traffic spread and whether related records land together. A poorly chosen key creates hot shards or forces expensive cross-shard queries.
Why it matters
The sharding key effectively sets the scalability ceiling of a partitioned store. A high-cardinality, evenly accessed key keeps shards balanced, while a skewed one concentrates load on one node.