Partitioning is directly connected with scaling in Azure Cosmos DB as it allows for load-balancing incoming requests. In fact, there are two different types of partition in this service:
- Physical: These are a combination of fixed storage and a variable amount of computing resources. This type of partition is fully managed by Cosmos DB—you cannot directly affect how your data is physically partitioned and how a service handles those partitions. In fact, you are also unaware of how many of those partitions are currently in use. Therefore, you should not design your containers against that specific concept.
- Logical: This kind of partition holds data that has the same partition key. Because you are able to define ...