Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
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
73
Azure Serbia UG - Introduction to Kubernetes using AKS
pascalnaber
0
43
ESPC 2019 - Running Docker containers on Azure: the overview
pascalnaber
0
84
Ignite the Tour Paris: Running Docker containers on Azure: The ultimate overview
pascalnaber
0
78
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
26
ExpertsliveNL 2019: Containers on Azure the: overview
pascalnaber
0
51
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
190
Other Decks in Technology
See All in Technology
AI時代に、プロダクトの数だけ積み上がる所有コストをどうエンジニアリングするか / Engineering the Cost of Ownership
kzkmaeda
0
990
grill-me(grilling):AI駆動開発を超助けてくれるSkill / grill me
mathbullet
0
100
KPIだけでは評価できないプロダクトが考えるべき Evalsという第二の評価系 / Beyond KPIs: Evals as a Second Evaluation Framework for Products #PdEConf
aki_iinuma
4
3.6k
Bet AI Day 2026丨How We Bet AI: AIとともに働く場をつくる
layerx
PRO
1
2.2k
いま、生成AIにKaggleをどこまで 任せられるか — ROGIIコンペでの進め方とTips
k951286
3
1.4k
When Does a Local Qwen Start to Break
morshoto
0
170
生成AI時代の クレデンシャルとパーミッション設計
nrinetcom
PRO
3
1.5k
Level Up Your CDK DX: 5 Tools I’ve Been Building
gotok365
2
190
AI時代のAPI品質を支えるガードレール / API Guardrails for API quality in the AI era
yokawasa
1
100
Nav2、Nav3 ... はたまた自作?〜 作って理解する Nav3 の設計意図 〜 / Nav2, Nav3 ... or Build Your Own? — Understanding Nav3's design intent by building it from scratch
yanzm
0
220
本番に近いテストをもっと手軽に - Postmanで広がるAPIテストの世界 / Expanding the World of API Testing with Postman
yokawasa
1
250
DINO-EdgeQuery:Edge-First Polygon Decoding for Building Footprint Extraction from Satellite Imagery
lehupa
0
140
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
72
12k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
440
Amusing Abliteration
ianozsvald
1
290
A Soul's Torment
seathinner
7
3.5k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
330
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
490
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
270
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
Site-Speed That Sticks
csswizardry
13
1.5k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
The SEO Collaboration Effect
kristinabergwall1
1
550
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