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.
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.
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.
Watching @jeremylikness #JuliaChild his #CosmosDb presentation on pushing a food database app to a Docker Container. pic.twitter.com/Y0L1jaYiAC
— Jim Wooley (@jimwooley) August 29, 2017
Despite the challenges, feedback was positive.
Great presentation on CosmosDB by @jeremylikness tonight at the Atlanta .Net Meetup.
— Doug Ware (@DougWare) August 29, 2017
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
JeremyLikness/explore-cosmos-db
Finally, here is the full deck from my presentation.
View the presentation on Slideshare.net
Thank you,
Related articles: