Overview of Partitions
Explore how Cosmos DB uses partitions to achieve horizontal scaling and distribute data efficiently. Understand the difference between logical partitions based on partition keys and physical partitions managed by Cosmos DB. Learn how partitioning impacts data storage, throughput, and high availability.
We'll cover the following...
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 ...