Overview of Partitions

Learn what Cosmos DB partitions are and how they are used for scaling our application.

What are partitions?

Partitions are the primary tool Cosmos DB uses to provide horizontal scaling. The database replicates and distributes our data into different servers (based on the configuration) to achieve great response times. However, it doesn’t duplicate the whole dataset everywhere, because each node has limits. Instead, it divides the data into distinct subsets and distributes them. These subsets are called logical partitions.

Note: All the documents in a logical partition have the same partition key.

We ...