Jeremy Likness
Jeremy Likness
Empowering developers to be their best.
📅 Aug 29, 2017 🕘 3 min read 💬 559 words

Explore the Cosmos (DB) with .NET Core 2.0

Learn about the Azure CosmosDB database w/ DocumentDB, MongoDB, Gremlin (Graph) and Table storage APIs and .NET Core 2.0 examples.

You are viewing a limited version of this blog. To enable experiences like comments, opt-in to our privacy and cookie policy.

I presented a talk about what I consider to be Azure’s premiere serverless database offering to the Atlanta .NET User Group on the evening of Monday, August 28th 2017. Here is the link to the event.

Explore the Cosmos (DB)

Explore the Cosmos (DB)

Technology moves at such a fast pace it is often difficult to keep up with the latest innovations. I was happy to learn that many of the attendees did not have much exposure to CosmosDB and therefore had the opportunity to learn something new. The audience was kind enough to participate in a group 360° photo.

The presentation was fun, especially due to some technical challenges I faced when trying to run Docker containers. I’m not sure why my Docker host was resisting, but fortunately I prepare for all contingencies and had the Docker images available in a repository and running in an Azure Container Instance to demo.

Twitter capabilities are limited without consent. For the full experience:   

Despite the challenges, feedback was positive.

I received a lot of great questions, and promised to follow-up with answers:

  • Does CosmosDB support sharding? Short answer is yes, that concept is supported. Here is more information about how to partition and scale a CosmosDB.
  • Strong consistency and eventual consistency were well-understood, but there were a lot of questions about the other consistency levels available. You can learn more about those in this article about tuning data consistency levels.
  • How does CosmosDB integrate with Azure’s serverless “functions” offering? Read about CosmosDB Azure Functions bindings.
  • Can you use the MongoDB driver if you choose the DocumentDB API? No, not in the current implementation. You must specify MongoDB as the API in order to use the MongoDB driver.
  • How do you migrate data into CosmosDB? Use the data migration tool.
  • Is it possible to test CosmosDB applications locally? Yes, there is a local emulator.

If you have other questions, take a look at the CosmosDB FAQ and if that doesn’t answer them, reach out to me!

I also had a question about understanding document databases from the perspective of a relational developer. I recently published a blog post to address those concerns directly:

I also published a public GitHub repository with .NET Core 2.0 code that:

  • Imports data from the USDA nutrient database into a CosmosDB instance
  • Exposes a Web API to query the data
  • Provides a simple single page web application to browse the data


Finally, here is the full deck from my presentation.

View the presentation on

Thank you,

Jeremy Likness

Do you have an idea or suggestion for a blog post? Submit it here!
comments powered by Disqus

Related articles: