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
120
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
80
Azure Serbia UG - Introduction to Kubernetes using AKS
pascalnaber
0
46
ESPC 2019 - Running Docker containers on Azure: the overview
pascalnaber
0
89
Ignite the Tour Paris: Running Docker containers on Azure: The ultimate overview
pascalnaber
0
81
Ignite the Tour Paris: 8 lessons learned running K8S with Azure Kubernetes Service
pascalnaber
0
270
Devoxx Poland - The ultimate introduction to Kubernetes
pascalnaber
0
30
ExpertsliveNL 2019: Containers on Azure the: overview
pascalnaber
0
57
IntelligentCloud 2019: 8 lessons learned using k8s with Azure Kubernetes Service
pascalnaber
0
240
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
「私が一番顧客に詳しい」を捨てる~ 全員が一次情報に精通する開発チームをつくり、PMが次のボトルネックへ染み出すまで
kaminashi
3
1.5k
freeeにおける AI を用いた ブラウザ動作確認の自動化の取り組み
freee
PRO
0
150
CSS2026:OWS研究会・招待講演「世界観を、実装する」
atsush1_sada
2
230
freeeにおけるSoftware Factory
freee
PRO
0
320
CloudWatch Logsのコスト最適化:どこまでAIに任せてどこから人間が承認すべきか
yama3133
0
170
Steerable Visual Representations
sansantech
PRO
0
190
macOS Golden Gate 時代のMac管理
tategami
0
130
OptunaHub: ブラックボックス最適化のためのプラットフォーム
pfn
PRO
0
150
20年間 SNS サービス「GREE」 を支えた技術の刷新と、長期運用サービスの Kubernetes へのリアーキテクト
gree_tech
PRO
0
110
sue445's proposals 2026
sue445
0
130
小規模OSSモデルは サイバーセキュリティ業務に どこまで使えるか
bbrbbq
0
200
国際カードブランドルール変更に伴うクレジットカード決済取引仕様変更について
k1style
0
160
Featured
See All Featured
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
610
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
Bash Introduction
62gerente
615
220k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
370
A better future with KSS
kneath
240
18k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
640
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Technical Leadership for Architectural Decision Making
baasie
3
610
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
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