Partitions in Azure Cosmos DB

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 DByou 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 ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.