Explore the Cosmos (DB) with .NET Core 2.0
- 3. Explore the (Cosmos) DB with X-Plat .NET Core
▪ History
▪ Context
▪ Sparkly Shiny Portals
▪ All the Demos
▪ Q&A
- 12. CosmosDB serves your favorite flavor.
▪ DocumentDB – SQL-like interface
▪ MongoDB – a popular document-based API
▪ Gremlin – graph-based (nodes, edges, and properties)
▪ Table – key/value store
The aircraft you will be flying on today is a MongoDB.Driver C# .NET Core driver.
This aircraft is capable of landing on Linux, MacOS, or Windows, and prefers to
remain airborne in the cloud.
- 13. You’ve heard the hype about “serverless?”
“CosmosDB got your back.”
– Jeremy Likness
- 14. Welcome to the document world!
▪ Independent
▪ Flexible schema
▪ Indexing support
▪ Easy manipulation
▪ JSON-ready
▪ Fast
- 15. JavaScript Object Notation – why do we care?
▪ It happens to be handled really well by JavaScript.
▪ JavaScript is taking over the world.
▪ SkyNet will be written in JavaScript.
▪ Dynamic and native === happy browser client.
▪ You can still have a schema.
▪ A little more readable than XML.
▪ XML was supposed to take over the world. It didn’t.
- 16. Choose your consistency.
▪ Strong – guaranteed reads. Locked to a single region.
▪ Bounded staleness – choose your staleness. Highest consistency with geo-
replication.
▪ Session – guaranteed “strong” within a specific session.
▪ Consistent prefix – eventual consistency and writes are never out of order.
▪ Eventual – may get stale data but lowest latency option.
- 19. That’s All, Folks!
• @JeremyLikness
• https://blog.jeremylikness.com
• https://github.com/JeremyLikness/explore-
cosmos-db
• CosmosDB Docs: https://goo.gl/AWXqxK