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
Transcript
36 slides
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
More Decks by Pascal Naber
See All by Pascal Naber
Container Orchestration on Azure @ DevOn
pascalnaber
0
89
Azure Serbia UG - Introduction to Kubernetes using AKS
pascalnaber
0
49
ESPC 2019 - Running Docker containers on Azure: the overview
pascalnaber
0
91
Ignite the Tour Paris: Running Docker containers on Azure: The ultimate overview
pascalnaber
0
84
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
34
ExpertsliveNL 2019: Containers on Azure the: overview
pascalnaber
0
58
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
OCI Artifact による自動運転タクシーに向けた OTA 基盤の構築
biwashi
1
300
AWS re:Invent 2026 FSI Pre-Event Networking Night
junjikoide
0
220
AWS Client VPNの設定でハマったポイントとその過程での気づき
amarelo_n24
1
440
個人ASを取得して、自宅Kubernetes上のVMをグローバルIPで公開した話
munenick
0
230
常時稼働エージェントの作り方(Claude公式ブログを資料化)
minorun365
PRO
20
29k
データから見る AI時代のエンジニア転職と採用
junya_okura
4
1.3k
目を覚ませ!僕らの認証情報が何者かに侵略されてるぞ
tkito
2
490
Agent Routerで作るマルチテナント 推論基盤 #CNDW2026 / Building Multi-Tenant Inference Platform with Agent Router #CNDW2026
everpeace
5
610
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1.1k
ワークフローからハーネスへ — Web フレームワークの作者たちが AI エージェントに向かう理由
azukiazusa1
2
1.5k
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
180
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
500
Featured
See All Featured
Building Applications with DynamoDB
mza
96
7.3k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Testing 201, or: Great Expectations
jmmastey
46
8.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
The Limits of Empathy - UXLibs8
cassininazir
2
800
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
Chasing Engaging Ingredients in Design
codingconduct
0
410
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Code Reviewing Like a Champion
maltzj
529
40k
Crafting Experiences
bethany
1
460
Typedesign – Prime Four
hannesfritz
42
3.2k