intermediatetermWeb foundationsWeb foundations / Backend and APIs / Sharding
IntermediateNot yet reviewed

Sharding

A type of database partitioning that separates large databases into smaller, faster, more manageable pieces called shards across nodes.

Definition

A type of database partitioning that separates large databases into smaller, faster, more manageable pieces called shards across nodes.

Use case

Splitting user accounts across multiple database clusters using user_id % num_shards as the shard key.

Related terms

Articles

What is sharding?

MongoDB · Article · link checked 2026-10-16

Splitting a database across machines by key, with the tradeoffs.

Suggest a change