Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Techdays NL - Azure Cosmos DB - a technical ove...
Search
Pascal Naber
October 13, 2017
Technology
110
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Techdays NL - Azure Cosmos DB - a technical overview
https://www.youtube.com/watch?v=-23wqlIf3nM
Pascal Naber
October 13, 2017
More Decks by Pascal Naber
See All by Pascal Naber
Container Orchestration on Azure @ DevOn
pascalnaber
0
79
Azure Serbia UG - Introduction to Kubernetes using AKS
pascalnaber
0
44
ESPC 2019 - Running Docker containers on Azure: the overview
pascalnaber
0
87
Ignite the Tour Paris: Running Docker containers on Azure: The ultimate overview
pascalnaber
0
79
Ignite the Tour Paris: 8 lessons learned running K8S with Azure Kubernetes Service
pascalnaber
0
260
Devoxx Poland - The ultimate introduction to Kubernetes
pascalnaber
0
28
ExpertsliveNL 2019: Containers on Azure the: overview
pascalnaber
0
52
IntelligentCloud 2019: 8 lessons learned using k8s with Azure Kubernetes Service
pascalnaber
0
230
Ignite the Tour Johannesburg 2019 8 lessons learned using k8s with Azure Kubernetes Service
pascalnaber
0
200
Other Decks in Technology
See All in Technology
ビジネスを止めない技術的負債の返済のための戦略とその手法 - 技術的負債と向き合う / Complexity and Simplicity
soudai
PRO
2
350
Codex概要
ymiya55
0
170
【Findyテック文化祭ワークショップ】新卒エンジニア&採用担当と作る、 なりたい姿と今やるべき一歩
dip_tech
PRO
0
150
HolmesGPTで始めるSREエージェント入門!プラットフォームの障害調査はAIにお任せ 〜
leveragestech
PRO
0
130
生成AIを使って「人が」考える技術 ― AI時代の人機共想と実践ノウハウ|UNITT AC2026
ishiirikie
0
510
スキルを作る、その前に!複数人で使われるスキルを 作るためのプロセス
junkifurukawa
1
160
1人アドミンな私はAWSアカウント申請をSlackで完結したい!
ysuzuki
0
110
AI駆動開発で仕様はどこまで書くべきか? ― 人とAIの責務境界から考える開発プロセスの実践
takahiromatsui
1
280
AI臭い文章とは何なのか
nasuvitz
38
76k
プラットフォームを「作る」、 チームに「入り込む」
sansantech
PRO
0
430
いちAWSエンジニアのAI活用を振り返る #devio2026 / devio osaka 2026 kawahara
masahirokawahara
2
310
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
16
120k
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Optimizing for Happiness
mojombo
378
71k
Building Applications with DynamoDB
mza
96
7.2k
Ruling the World: When Life Gets Gamed
codingconduct
0
380
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5k
A designer walks into a library…
pauljervisheath
211
25k
Visualization
eitanlees
153
17k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
350
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
420
Designing Powerful Visuals for Engaging Learning
tmiket
1
580
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
390
Transcript
Azure Cosmos DB A technical overview @pascalnaber
Multiple consistency models Guaranteed: Low latency High availability Predictable throughput
Schema agnostic Elastic horizontally scale out Multi model Globally distributed
NoSQL SQL Azure MySQL Azure PostgreSQL Azure Table Storage Azure
Cosmos DB
Unstructured data No joins Schema free Huge amount of data
Linear scalable Eventual Consistent
Project Florence DocumentDB Cosmos DB 2010 2015 10 May 2017
Founder: Dharma Shukla
Globally distributed
Globally distributed
None
Azure Cosmos DB Key-Value Column-Family Graph Documents SQL DocumentDB Azure
Tables
SQL (DocumentDB) & MongoDB Table (key-value) Gremlin (graph)
Database account Database User Permission {Container} {Item} sproc trigger UDF
conflict attachment Collection Graph Table Document Node Row Edge
• Key • PartitionKey • RowKey • Value • Properties
TableEntity WindowsAzure.Storage-PremiumTable WindowsAzure.Storage
Microsoft.Azure.DocumentDB MongoDB.Driver
Edge Node / Vertex Microsoft.Azure.Graphs Microsoft.Azure.DocumentDB Properties Properties
Pascal Dumb & Dumber Toy Story Kelsie Jumanji Vertex Vertex
Edge Edge Jeff Daniels
g.V('user7').outE('rates').has('weight', gte(4.5)).inV().inE('rates').has('weight', gte(4.5)).outV().outE('rates').has('weight', gte(4.5)).inV()
The most important design decision for your Cosmos DB project
None
None
PartitionKey Read Write Postcode* Guid BlogId* ArticleGroupId*
None
None
Reads are guaranteed to see the most recent write Single
location only! Consistency levels 1 2 3 4 5 6 7 8 9 10 Total Britt 0 1 4 2 7 Maud 0 2 3 5 Strong Consistency 7-5 Bounded Staleness (lag 5 min) 5-5, 7-5 Session (self) 7-5 Session (anybody else) 0-0, 0-2, 1-0, 1-2, 5-2, 1-5, 5-5, 7-5 Consistent Prefix 0-0, 1-0, 1-2, 5-2, 5-5, 7,5 Eventual Consistency 0-0, 0-2, 1-0, 1-2, 5-2, 1-5, 5-5, 7-5
Reads can lag behind writes by a user specified number
of versions or time interval High Latency Consistency levels 1 2 3 4 5 6 7 8 9 10 Total Britt 0 1 4 2 7 Maud 0 2 3 5 Strong Consistency 7-5 Bounded Staleness (lag 5 min) 5-5, 7-5 Session (self) 7-5 Session (anybody else) 0-0, 0-2, 1-0, 1-2, 5-2, 1-5, 5-5, 7-5 Consistent Prefix 0-0, 1-0, 1-2, 5-2, 5-5, 7,5 Eventual Consistency 0-0, 0-2, 1-0, 1-2, 5-2, 1-5, 5-5, 7-5
Read My Writes Low Latency Consistency levels 1 2 3
4 5 6 7 8 9 10 Total Britt 0 1 4 2 7 Maud 0 2 3 5 Strong Consistency 7-5 Bounded Staleness (lag 5 min) 5-5, 7-5 Session (self) 7-5 Session (anybody else) 0-0, 0-2, 1-0, 1-2, 5-2, 1-5, 5-5, 7-5 Consistent Prefix 0-0, 1-0, 1-2, 5-2, 5-5, 7,5 Eventual Consistency 0-0, 0-2, 1-0, 1-2, 5-2, 1-5, 5-5, 7-5
Readers will never see writes that are out of order
Low latency Consistency levels 1 2 3 4 5 6 7 8 9 10 Total Britt 0 1 4 2 7 Maud 0 2 3 5 Strong Consistency 7-5 Bounded Staleness (lag 5 min) 5-5, 7-5 Session (self) 7-5 Session (anybody else) 0-0, 0-2, 1-0, 1-2, 5-2, 1-5, 5-5, 7-5 Consistent Prefix 0-0, 1-0, 1-2, 5-2, 5-5, 7,5 Eventual Consistency 0-0, 0-2, 1-0, 1-2, 5-2, 1-5, 5-5, 7-5
Out of order reads At the end it will be
fine lowest read and write latency Consistency levels 1 2 3 4 5 6 7 8 9 10 Total Britt 0 1 4 2 7 Maud 0 2 3 5 Strong Consistency 7-5 Bounded Staleness (lag 5 min) 5-5, 7-5 Session (self) 7-5 Session (anybody else) 0-0, 0-2, 1-0, 1-2, 5-2, 1-5, 5-5, 7-5 Consistent Prefix 0-0, 1-0, 1-2, 5-2, 5-5, 7,5 Eventual Consistency 0-0, 0-2, 1-0, 1-2, 5-2, 1-5, 5-5, 7-5
& reserve
Cosmos DB Pricing (per month) RU’s p/s € 400 20,08
1.000 50,19 5.000 250,97 10.000 501,94 50.000 2509,70 100.000 5019,40 GB € 1 0,21 10 2,11 50 10,55 100 21,09 1.000 210,90 10.000 2109,00 1 KB read 1 KB write Select by id Select by xyz Select group by Select top 10 = 1 RU = 5 RU = 2.5 RU = 7 RU = 70 RU = 10 RU
https://aka.ms/cosmosdb-emulator https://azure.microsoft.com/en-us/try/cosmosdb/ https://www.documentdb.com/capacityplanner docker pull microsoft/azure-cosmosdb-emulator
None
None
Json MongoDB SQL Server Csv files Azure Table Storage Amazon
DynamoDB Hbase Every four hours Manual backups Backups
Multiple consistency models Guaranteed: Low latency High availability Predictable throughput
Schema agnostic Elastic horizontally scale out Multi model Globally distributed
Thank you! Pascal Naber Coding cloud architect Xpirit @pascalnaber
[email protected]
@pascalnaber http://www.xpirit.com https://pascalnaber.wordpress.com