2. CosmosDb
• Announced at Build 2017
• Superset of DocumentDb
• The Multi database!
• Multi-model
• Multi-API
• Multi-consistency
• Multi-region
3. CosmosDb – Multi-Model
• CosmosDb can be a…
• Document database
• MongoDb compatible
• Key-Value store
• Table store
• Graph database
4. CosmosDb – Multi-API
• Data in CosmosDb can be accessed using…
• DocumentDb API
• MongoDb (bug-compatible)
• Azure table storage API
• Gremlin
• For graph db’s
• SQL
5. CosmosDb – Multi-Consistency
• A CosmosDb database can have…
• Strong e.g. ACID
• Bounded Staleness
• Session (default)
• Consistent Prefix
• Eventual
• … consistency
• You can override the consistency on a per-request basis
Consistency
Availability
6. CosmosDb – Multi-Region
• CosmosDb data can be located …
• In a single region
• (For strong consistency you have to have this)
• Globally
• (Any other consistency model)
• Data is read from the nearest data centre to the requester
• Failover
• Automatic
• Manual
7. CosmosDb – Use cases
• Distributed cache
• Object cache
• Output cache
• Azure functions
• Bot framework state data
8. CosmosDb - Summary
• Multi-model
• Multi-API
• Multi-consistency
• Multi-region
• Try it FOR FREE
• http://tinyurl.com/trycosmosdbforfree
9. Resources
• CosmosDb emulator – tinyurl.com/cosmosdbemulator
• Windows 10 only
• Dot Net Conf - tinyurl.com/cosmosdbdotnetconf
• Samples - http://tinyurl.com/cosmosdbsamples
• @azurecosmosdb