What is Partitioning in Azure Cosmos DB?

Azure Cosmos DB uses partitioning to scale containers in our database to meet the performance needs of our application. Ensuring that we partition our data correctly is critical for building applications that efficiently and effortlessly scale to meet the needs of our users.

In this video, I explain:

  • What partitioning is in Azure Cosmos DB.
  • What the differences are between Logical and Physical partitions and how we can manage them.
  • What a Partition Key is.
  • How we can choose an effective partition key depending on our needs and how we can perform queries inside and across our partitions.
  • I will finish off by going through a demo of how you can create a container with a partition key in C#, how we can perform queries against our partitions and how we can monitor our physical partitions via the Azure Portal.

By the end of this video, you’ll have a clear understanding of what partitioning is in Azure Cosmos DB, how you can choose an effective partition key depending on the needs of your application and you can query your data inside and across your partitions in code.

If you have any questions, please feel free to ask in the comment section either here or on YouTube.

N.B, if you prefer to read an article, rather than watching a video. I have previously written on partitioning on Azure Cosmos DB here: https://medium.com/@willvelida/understanding-partitioning-in-azure-cosmos-db-361c4e120852

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Will Velida

Will Velida

Customer Engineer at Microsoft working in the Fast Track for Azure team. GitHub: https://github.com/willvelida