the hitchhiker’s guide to the cosmos · @chadgreen. turnkey global distribution. elastic scale...
TRANSCRIPT
![Page 1: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/1.jpg)
@chadgreen@chadgreen
The Hitchhiker ’s
Guide to the Cosmos
Chad GreenA 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
![Page 2: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/2.jpg)
@chadgreen
Platinum Sponsors
![Page 3: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/3.jpg)
@chadgreen
Gold Sponsors
![Page 4: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/4.jpg)
@chadgreen
Special Thanks
![Page 5: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/5.jpg)
@chadgreen@chadgreen
Who is Chad GreenD i r e c t o r o f S o f t w a r e D e v e l o p m e n tS c h o l a r R x
� [email protected] chadgreen.com� ChadGreen� ChadwickEGreen
![Page 6: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/6.jpg)
@chadgreen@chadgreen
What is Cosmos DB
![Page 7: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/7.jpg)
@chadgreen@chadgreen
A globally distributed, massively scalable, multi-model database serviceAzure Cosmos DB
Turnkey global distribution
![Page 8: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/8.jpg)
@chadgreen@chadgreen
Comprehensive SLAs
Turnkey global distribution
A globally distributed, massively scalable, multi-model database serviceAzure Cosmos DB
Turnkey global distribution
![Page 9: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/9.jpg)
@chadgreen@chadgreen
Turnkey global distribution
Elastic scale out of storage & throughput
Comprehensive SLAs
A globally distributed, massively scalable, multi-model database serviceAzure Cosmos DB
Comprehensive SLAs
![Page 10: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/10.jpg)
@chadgreen@chadgreen
Turnkey global distribution
Elastic scale out of storage & throughput
Comprehensive SLAs
Guaranteed low latency at the 99th percentile
A globally distributed, massively scalable, multi-model database serviceAzure Cosmos DB
Elastic scale out of storage & throughput
![Page 11: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/11.jpg)
@chadgreen@chadgreen
Turnkey global distribution
Elastic scale out of storage & throughput
Comprehensive SLAs
Guaranteed low latency at the 99th percentile
A globally distributed, massively scalable, multi-model database serviceAzure Cosmos DB
Guaranteed low latency at the 99th percentile
Five well-defined consistency models
![Page 12: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/12.jpg)
@chadgreen@chadgreen
EventualSessionStrongConsistent PrefixBounded Staleness
Turnkey global distribution
Elastic scale out of storage & throughput
Five well-defined consistency models
Comprehensive SLAs
Guaranteed low latency at the 99th percentile
A globally distributed, massively scalable, multi-model database serviceAzure Cosmos DB
![Page 13: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/13.jpg)
@chadgreen@chadgreen
No schema or index managementBattle tested database serviceUbiquitous regional presenceSecure by default and enterprise ready
Turnkey global distribution
Elastic scale out of storage & throughput
Five well-defined consistency models
Comprehensive SLAs
Guaranteed low latency at the 99th percentile
A globally distributed, massively scalable, multi-model database serviceAzure Cosmos DB
![Page 14: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/14.jpg)
@chadgreen@chadgreen
Azure Cosmos DB Request Units
• Item Size
• Item Indexing
• Item Property Count
• Indexed Properties
• Data Consistency
• Query Patterns
• Script Usage
![Page 15: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/15.jpg)
@chadgreen@chadgreen
Azure Cosmos DB Pricing
Unit PriceProvisioned Throughput (multiple region writes) per 100 RU/s $0.016/hourProvisioned Throughput (single region writes) per 100 RU/s $0.008/hourSSD Storage (per GB) $0.25 GB/month
Starts at approximately $23.61/month
Save 15-65% with Reserved Pricing
![Page 16: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/16.jpg)
@chadgreen@chadgreen
Azure Cosmos Capabilities
What if we have REALY large data requirements?
![Page 17: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/17.jpg)
@chadgreen@chadgreen
Azure Cosmos Capabilities
Resource Default LimitMaximum RUs per container 1,000,000Maximum RUs per database 1,000,000Maximum Rus per (logical) partition key 10,000Maximum storage across all items per (logical) partition key 10 GBMaximum number of distinct (logical) partition keys UnlimitedMaximum storage per container UnlimitedMaximum storage per database Unlimited
![Page 18: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/18.jpg)
@chadgreen@chadgreen
Cosmos Use Cases
![Page 19: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/19.jpg)
@chadgreen@chadgreen
IoT and Telematics
Common Pattern in IoT use cases
• Ingest bursts of data from devices and sensors of various locales
• Process and analyze streaming data to derive real-time insights
• Archive data to cold storage for batch analytics
![Page 20: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/20.jpg)
@chadgreen@chadgreen
IoT and Telematics
![Page 21: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/21.jpg)
@chadgreen@chadgreen
Retail and Marketing
• Used extensively by Microsoft’s own e-commerce platforms
• Storing and querying a set of attributes for entities
• Examples of catalog data
• User Accounts
• Product Catalogs
• IoT Device Registries
![Page 22: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/22.jpg)
@chadgreen@chadgreen
Retail and Marketing
![Page 23: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/23.jpg)
@chadgreen@chadgreen
Retail and Marketing
![Page 24: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/24.jpg)
@chadgreen@chadgreen
Gaming
• Database tier is crucial
• Often require single-millisecond latencies for reads and writes
• Needs to be fast and able to handle massive spikes
![Page 25: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/25.jpg)
@chadgreen@chadgreen
Gaming
![Page 26: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/26.jpg)
@chadgreen@chadgreen
Web & Mobile Applications
• Modeling social interactions
• Integrating with third-party services
• Building rich personalized experiences
![Page 27: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/27.jpg)
@chadgreen@chadgreen
Web & Mobile Applications – Social Applications
![Page 28: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/28.jpg)
@chadgreen@chadgreen
Web & Mobile Applications – Personalization
![Page 29: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/29.jpg)
@chadgreen@chadgreen
Integrations
![Page 30: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/30.jpg)
@chadgreen@chadgreen
Cosmos DB Integrations
Apache SparkEtch APIChange FeedAzure FunctionsAzure Logic AppsMicrosoft Flow
![Page 31: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/31.jpg)
@chadgreen@chadgreen
Navigating the 5 API
Models
![Page 32: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/32.jpg)
@chadgreen@chadgreen
Resource Model and API Projections
AtomResourceSequence
![Page 33: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/33.jpg)
@chadgreen@chadgreen
SQL APID o c u m e n t D a t a b a s e
![Page 34: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/34.jpg)
@chadgreen@chadgreen
SQL API – What
• Document Database
• Originally Microsoft’s DocumentDB implementation
• Supports using SQL as a JSON query language
• Uses JavaScript’s programming model as foundation for query language
![Page 35: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/35.jpg)
@chadgreen@chadgreen
SQL API – Why
Building a new non-relational
document database and want
to query using SQL
![Page 36: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/36.jpg)
@chadgreen@chadgreen
SQL API – How: Data Model
SELECT * FROM cWHERE c.OwnerEmailAddress= ‘[email protected]’
![Page 37: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/37.jpg)
@chadgreen@chadgreen
SQL API – How: Insert
![Page 38: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/38.jpg)
@chadgreen@chadgreen
SQL API – How: Insert
![Page 39: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/39.jpg)
@chadgreen@chadgreen
SQL API – How: Query
![Page 40: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/40.jpg)
@chadgreen@chadgreen
SQL API – Query
• API (using Microsoft.Azure.Cosmos)
• LINQ to SQL API
• JavaScript
• Stored Procedures
• Triggers
• User Defined Functions
• Entity Framework
![Page 41: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/41.jpg)
@chadgreen@chadgreen
MongoDBD o c u m e n t D a t a b a s e
![Page 42: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/42.jpg)
@chadgreen@chadgreen
API for MongoDB – What
• Native MongoDB implementation
• Allows existing client SDKs, drivers, and tools to interact transparently
• Default is Mongo v3.2; v3.4 in preview
![Page 43: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/43.jpg)
@chadgreen@chadgreen
API for MongoDB – Why
Migrating data from a
MongoDB database to Azure
Cosmos DB’s fully managed
service
![Page 44: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/44.jpg)
@chadgreen@chadgreen
API for MongoDB – How: Data Model
Filter: {"OwnerEmailAddress":"[email protected]"}
![Page 45: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/45.jpg)
@chadgreen@chadgreen
API for MongoDB – How: Insert
![Page 46: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/46.jpg)
@chadgreen@chadgreen
API for MongoDB – How: Insert
![Page 47: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/47.jpg)
@chadgreen@chadgreen
API for MongoDB – How: Query
![Page 48: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/48.jpg)
@chadgreen@chadgreen
Gremlin API
G r a p h D a t a b a s e
![Page 49: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/49.jpg)
@chadgreen@chadgreen
Gremlin API – What
• Collection of vertices and edges
• Represents entities as vertices and the ways in which those entities relate
to the world as relationships
• Allows us to model all kinds of scenarios
![Page 50: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/50.jpg)
@chadgreen@chadgreen
Gremlin API – What
@ChadGreen
@AzureCosmosDB@_LBosq
Follows Follows
Follows
Follows
Follows
User
User
User
![Page 51: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/51.jpg)
@chadgreen@chadgreen
Gremlin API – Why
Building a graph database to
model and traverse
relationships among entities
![Page 52: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/52.jpg)
@chadgreen@chadgreen
Gremlin API – Why
• Social Networks
• Search
• Recommendations
• Communication networks
• Identity and access management
• Fraud detection
Represent data as it
is found in nature
![Page 53: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/53.jpg)
@chadgreen@chadgreen
Gremlin API – How: Data Model
g.V().hasLabel(‘presentation’).has(‘ownerEmailAddress’, ‘[email protected]’)
![Page 54: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/54.jpg)
@chadgreen@chadgreen
SQL API – How: Insert
![Page 55: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/55.jpg)
@chadgreen@chadgreen
SQL API – How: Query
"g.V().hasLabel('tag’).has('name’, 'Azure’).in('taggedAs’).hasLabel('presentation')"
![Page 56: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/56.jpg)
@chadgreen@chadgreen
Gremlin API – Query
• API (using Gremlin.Net)
• Community API (Gremlin.Net.CosmosDb)
• JavaScript
• Stored Procedures
• Triggers
• User Defined Functions
• SQL API
![Page 57: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/57.jpg)
@chadgreen@chadgreen
Cassandra API
W i d e C o l u m n S t o r e
![Page 58: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/58.jpg)
@chadgreen@chadgreen
Cassandra API – What
• Open-source, distributed, wide column store, NoSQL database
• Designed to handle large amounts of data
• Uses many commodity servers, providing high availability
• Developed to power the Facebook inbox search feature
![Page 59: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/59.jpg)
@chadgreen@chadgreen
Casandra API – Why
Migrating data from Cassandra
to Azure Cosmos DB
![Page 60: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/60.jpg)
@chadgreen@chadgreen
Cassandra API – How: Data Model
![Page 61: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/61.jpg)
@chadgreen@chadgreen
Cassandra API – How: Insert
![Page 62: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/62.jpg)
@chadgreen@chadgreen
Cassandra API – How: Insert
![Page 63: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/63.jpg)
@chadgreen@chadgreen
Cassandra API – How: Query
![Page 64: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/64.jpg)
@chadgreen@chadgreen
Cassandra API – Query
• API (using CassandraCSharpDriver)
• Cassandra Query Language (CQL)
• Cassandra-based tools (like cqlsh)
![Page 65: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/65.jpg)
@chadgreen@chadgreen
Table APITa b l e S t o r a g e
![Page 66: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/66.jpg)
@chadgreen@chadgreen
Table API – What
• Stores large amounts of structured data
• Ideal for storing structured, non-relational data
![Page 67: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/67.jpg)
@chadgreen@chadgreen
Table API – Why
Migrating data from Azure
Table storage to Cosmos DB
![Page 68: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/68.jpg)
@chadgreen@chadgreen
Table API – How: Data Model
![Page 69: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/69.jpg)
@chadgreen@chadgreen
Table API – How: Insert
![Page 70: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/70.jpg)
@chadgreen@chadgreen
Table API – How: Insert
![Page 71: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/71.jpg)
@chadgreen@chadgreen
Table API – How: Query
![Page 72: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/72.jpg)
@chadgreen@chadgreen
Call to Action
![Page 73: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/73.jpg)
@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 /
![Page 74: The Hitchhiker’s Guide to the Cosmos · @chadgreen. Turnkey global distribution. Elastic scale out . of storage & throughput. Comprehensive SLAs. Guaranteed low latency at the 99](https://reader033.vdocuments.net/reader033/viewer/2022052020/6033cf9848ee135aa0116a3b/html5/thumbnails/74.jpg)
@chadgreen@chadgreen
� c h a d g r e e n @ c h a d g r e e n . c o m c h a d g r e e n . c o m� C h a d G r e e n� C h a d w i c k E G r e e n
Thank You