@chadgreen @chadgreen
The Hitchhiker’s Guide to the Cosmos
Chad Green
A t l a n t a C o d e C a m p S e p t e m b e r 1 4 , 2 0 1 9
The Hitchhikers Guide to the Cosmos Chad Green A t l a n t a C - - PowerPoint PPT Presentation
The Hitchhikers Guide to the Cosmos Chad Green A t l a n t a C o d e C a m p S e p t e m b e r 1 4 , 2 0 1 9 @chadgreen @chadgreen Platinum Sponsors @chadgreen Gold Sponsors @chadgreen Special Thanks @chadgreen Who is Chad
@chadgreen @chadgreen
A t l a n t a C o d e C a m p S e p t e m b e r 1 4 , 2 0 1 9
@chadgreen
@chadgreen
@chadgreen
@chadgreen @chadgreen
D irec tor of S of t ware D evelop ment S c h olarR x
chadgreen@chadgreen.com chadgreen.com ChadGreen ChadwickEGreen
@chadgreen @chadgreen
@chadgreen @chadgreen
A globally distributed, massively scalable, multi-model database service
Azure Cosmos DB
Turnkey global distribution
@chadgreen @chadgreen
Comprehe hensive SLAs
Turnkey global distribution
A globally distributed, massively scalable, multi-model database service
Azure Cosmos DB
Turnke nkey glo globa bal dis distrib ibutio ion
@chadgreen @chadgreen
Turnkey global distribution
Ela lastic ic s scale le o
f storage ge & t thr hroughp ghput
Comprehensive SLAs
A globally distributed, massively scalable, multi-model database service
Azure Cosmos DB
Comprehe hensive SLAs
@chadgreen @chadgreen
Turnkey global distribution Elastic scale out
Comprehensive SLAs
Gu Guaranteed lo ed low w la latenc ency at th at the 9 99th
th per
percentile ile
A globally distributed, massively scalable, multi-model database service
Azure Cosmos DB
Ela lastic ic s scale le o
f storage ge & t thr hroughp ghput
@chadgreen @chadgreen
Turnkey global distribution Elastic scale out
Comprehensive SLAs
Gu Guaranteed lo ed low w la latenc ency at th at the 9 99th
th per
percentile ile
A globally distributed, massively scalable, multi-model database service
Azure Cosmos DB
Guaranteed low latency at the 99th percentile
Fiv Five well well-define ned cons nsistenc ncy m models dels
@chadgreen @chadgreen
Event ntual Sessi ssion St Strong Consiste tent P Prefix Bounded S ded Stal alen enes ess
Turnkey global distribution Elastic scale out
Five well-defined consistency models Comprehensive SLAs Guaranteed low latency at the 99th percentile
A globally distributed, massively scalable, multi-model database service
Azure Cosmos DB
@chadgreen @chadgreen
No schema o a or index ex m managem agemen ent Battle e tested ed databas abase e service Ubiquitou
regional presence Secure by default and enterprise ready
Turnkey global distribution Elastic scale out
Five well-defined consistency models Comprehensive SLAs Guaranteed low latency at the 99th percentile
A globally distributed, massively scalable, multi-model database service
Azure Cosmos DB
@chadgreen @chadgreen
Azure Cosmos DB Request Units
@chadgreen @chadgreen
Azure Cosmos DB Pricing
Unit Price Provisioned Throughput (multiple region writes) per 100 RU/s $0.016/hour Provisioned Throughput (single region writes) per 100 RU/s $0.008/hour SSD Storage (per GB) $0.25 GB/month Starts at approximately $23.61/month Save 15-65% with Reserved Pricing
@chadgreen @chadgreen
Azure Cosmos Capabilities
What if we have REALY large data requirements?
@chadgreen @chadgreen
Azure Cosmos Capabilities
Resource Default Limit Maximum RUs per container 1,000,000 Maximum RUs per database 1,000,000 Maximum Rus per (logical) partition key 10,000 Maximum storage across all items per (logical) partition key 10 GB Maximum number of distinct (logical) partition keys Unlimited Maximum storage per container Unlimited Maximum storage per database Unlimited
@chadgreen @chadgreen
@chadgreen @chadgreen
IoT and Telematics
Common Pattern in IoT use cases
@chadgreen @chadgreen
IoT and Telematics
@chadgreen @chadgreen
Retail and Marketing
@chadgreen @chadgreen
Retail and Marketing
@chadgreen @chadgreen
Retail and Marketing
@chadgreen @chadgreen
Gaming
@chadgreen @chadgreen
Gaming
@chadgreen @chadgreen
Web & Mobile Applications
@chadgreen @chadgreen
Web & Mobile Applications – Social Applications
@chadgreen @chadgreen
Web & Mobile Applications – Personalization
@chadgreen @chadgreen
@chadgreen @chadgreen
Cosmos DB Integrations
Apache Spark Etch API Change Feed Azure Functions Azure Logic Apps Microsoft Flow
@chadgreen @chadgreen
@chadgreen @chadgreen
Resource Model and API Projections
@chadgreen @chadgreen
Document Database
@chadgreen @chadgreen
SQL API – What
@chadgreen @chadgreen
SQL API – Why
@chadgreen @chadgreen
SQL API – How: Data Model
SELECT * FROM c WHERE c.OwnerEmailAddress = ‘chadgreen@chadgreen.com’
@chadgreen @chadgreen
SQL API – How: Insert
@chadgreen @chadgreen
SQL API – How: Insert
@chadgreen @chadgreen
SQL API – How: Query
@chadgreen @chadgreen
SQL API – Query
@chadgreen @chadgreen
Document Database
@chadgreen @chadgreen
API for MongoDB – What
@chadgreen @chadgreen
API for MongoDB – Why
@chadgreen @chadgreen
API for MongoDB – How: Data Model
Filter: {"OwnerEmailAddress": "chadgreen@chadgreen.com"}
@chadgreen @chadgreen
API for MongoDB – How: Insert
@chadgreen @chadgreen
API for MongoDB – How: Insert
@chadgreen @chadgreen
API for MongoDB – How: Query
@chadgreen @chadgreen
Graph Database
@chadgreen @chadgreen
Gremlin API – What
to the world as relationships
@chadgreen @chadgreen
Gremlin API – What
@ChadGreen @AzureCosmosDB @_LBosq
Follows Follows Follows Follows Follows
User User User
@chadgreen @chadgreen
Gremlin API – Why
@chadgreen @chadgreen
Gremlin API – Why
@chadgreen @chadgreen
Gremlin API – How: Data Model
g.V().hasLabel (‘presentation’) .has(‘ownerEmailAddress’, ‘chadgreen@chadgreen.c
@chadgreen @chadgreen
SQL API – How: Insert
@chadgreen @chadgreen
SQL API – How: Query
@chadgreen @chadgreen
Gremlin API – Query
@chadgreen @chadgreen
Wide Column Store
@chadgreen @chadgreen
Cassandra API – What
@chadgreen @chadgreen
Casandra API – Why
@chadgreen @chadgreen
Cassandra API – How: Data Model
@chadgreen @chadgreen
Cassandra API – How: Insert
@chadgreen @chadgreen
Cassandra API – How: Insert
@chadgreen @chadgreen
Cassandra API – How: Query
@chadgreen @chadgreen
Cassandra API – Query
@chadgreen @chadgreen
Table Storage
@chadgreen @chadgreen
Table API – What
@chadgreen @chadgreen
Table API – Why
@chadgreen @chadgreen
Table API – How: Data Model
@chadgreen @chadgreen
Table API – How: Insert
@chadgreen @chadgreen
Table API – How: Insert
@chadgreen @chadgreen
Table API – How: Query
@chadgreen @chadgreen
@chadgreen @chadgreen
a z u r e . m i c r o s o f t . c o m / e n - u s / t r y / c o s m o s d b /
@chadgreen @chadgreen
c h a d g r e e n . c o m