SlideShare a Scribd company logo
Cosmos DB
By Sakshi & Prashant
Agenda
What is CosmosDB ?
Advantages
Types
MySQL
MongoDB
Cosmos DB Service
What is CosmosDB ?
Azure Cosmos DB is Microsoft’s globally-distributed database
service "for managing data at planet-scale" launched in May
2017. It builds upon and extends the earlier Azure
DocumentDB, which was released in 2014. It is schema-less
and generally classified as a NoSQL database
Cosmos DB Service
Advantages
1. Global distribution
We can distribute data to any number of Azure regions, with the click of a
button. This enables us to put our data where our users are, ensuring the lowest possible
latency to customers.
Using Azure Cosmos DB's multi-homing APIs, the app always knows where the nearest region is
and will send requests to the nearest data center.
2 Multiple data models and popular APIs for accessing and querying data
APIs for the following data models are supported with SDKs available in multiple
languages:
■ DocumentDB API
■ MongoDB API
■ Table API
■ Graph (Gremlin) API
■ Additional data models coming soon
3 Elastically scale throughput and storage on demand, worldwide
○ Easily scale database throughput at a per second granularity, and change it
anytime you want.
○ Scale storage size transparently and automatically to handle any size
requirements now and forever.
4 Build highly responsive and mission-critical applications
○ Azure Cosmos DB guarantees end-to-end low latency at the 99th percentile to its
customers.
○ For a typical 1 KB item, Cosmos DB guarantees end-to-end latency of reads under
10 ms and indexed writes under 15 ms at the 99th percentile, within the same
Azure region. The median latencies are significantly lower (under 5 ms).
5 Ensure "always on" availability
○ 99.99% availability within a single region.
○ Deploy to any number of Azure regions for higher availability.
○ Simulate a failure of one or more regions with zero-data loss guarantees.
7 No database schema/index management
○ Stop worrying about keeping your database schema and indexes in-sync with your
application’s schema. We're schema-free.
○ Azure Cosmos DB’s database engine is fully schema-agnostic – it automatically
indexes all the data it ingests without requiring any schema or indexes and
serves blazing fast queries.
8 Low cost of ownership
○ Five to ten times more cost effective than a non-managed solution.
○ Three times cheaper than DynamoDB(No SQL)
Types
● MongoDB
● DocumentDB
● Table Key
● Graph
MongoDB/DocumentDB
DocumentDb is extended from MongoDB
Store data in documents
DocumentDB developed by Microsoft
MongoDB developed by Mongo db Inc.
DocumentDB store data in JSON format while MongoDB store
data in BSON
Table API in Azure Cosmo Db
A key-value store, or key-value database, is a data storage
paradigm designed for storing, retrieving, and managing
associative arrays, a data structure more commonly known
today as a dictionary or hash. Dictionaries contain a
collection of objects, or records, which in turn have many
different fields within them, each containing data. These
records are stored and retrieved using a key that uniquely
identifies the record, and is used to quickly find the data
within the database.
Gremlin API in Azure Cosmo Db
Model the real World
Relationship as First Class entity
Optimized for graph storage and traversal
Gremlin Standard
Comparision
Consistency Spectrum
MySQL
MySQL is the most popular Open Source Relational SQL
Database Management System.
SLA’s
Relational +SQL Data model
Setup
1>PEM file
mysql -h mysql-prashant.mysql.database.azure.com -u mysql-prashant@mysql-prashant -p
--ssl-ca=/home/sakshi/Desktop/BaltimoreCyberTrustRoot.crt.pem
2>Connection
url="jdbc:mysql://mysql-prashant.mysql.database.azure.com:3306/demo?verifyServerCertificate
=true&useSSL=true&requireSSL=false"
dbCreate = "create"
logSql = false
username = "mysql-prashant@mysql-prashant"
password = "Fin@default1"
Cosmos DB Service
Demo
MongoDB
MongoDB is a cross-platform, document oriented database that
provides, high performance and easy scalability. MongoDB
works on concept of collection and document.
Setup
Plugin
compile "org.mongodb:mongo-java-driver:2.13.1"
Dependencies
compile "org.grails.plugins:mongodb:3.0.0"
Setup - connection with Azure MongoDB
url =
"mongodb://cosmos-prashant-mongo:LOwFwijFWi3v3zC2iUP7oF51b0NSWBAMGo
dZrRXznwzX2O2kFd3ZOE3u7DGJedpHpG068JyGWMRFjBvVm8jnTg==@cosmos-pr
ashant-mongo.documents.azure.com:10255/azure_session?ssl=true&replicaSet=gl
obaldb"
Demo
Thank You

More Related Content

PDF
Azure cosmos db
PPTX
Azure Cosmos DB - NoSQL In the Microsoft Cloud
PPTX
Azure document db/Cosmos DB
PPTX
Azure CosmosDB
PPTX
Build 2017 - P4010 - A lap around Azure HDInsight and Cosmos DB Open Source A...
PPTX
Azure CosmosDB the new frontier of big data and nosql
PPTX
Azure Cosmos DB: Features, Practical Use and Optimization "
PPTX
Azure CosmosDb - Where we are
Azure cosmos db
Azure Cosmos DB - NoSQL In the Microsoft Cloud
Azure document db/Cosmos DB
Azure CosmosDB
Build 2017 - P4010 - A lap around Azure HDInsight and Cosmos DB Open Source A...
Azure CosmosDB the new frontier of big data and nosql
Azure Cosmos DB: Features, Practical Use and Optimization "
Azure CosmosDb - Where we are

What's hot (20)

PPTX
Azure CosmosDb
PDF
Zero to 60 with Azure Cosmos DB
PPTX
Introduction to azure cosmos db
PPTX
Azure Cosmos DB Pricing 101 Infographic
PPTX
Practical Use of a NoSQL Database
PPTX
Webinar: Utilisations courantes de MongoDB
PPTX
An afternoon with mongo db new delhi
PDF
Data Migration to Azure SQL and Azure SQL Managed Instance - June 19 2020
PPTX
NoSQL for SQL Users
PPTX
Bi and AI updates in the Microsoft Data Platform stack
PPTX
Cosmosdb graph
PDF
MongoDB Introduction talk at Dr Dobbs Conference, MongoDB Evenings at Bangalo...
PDF
Samedi SQL Québec - La plateforme data de Azure
PPTX
PPTX
Discovery Day 2019 Sofia - Big data clusters
PPTX
Maximizing MongoDB Performance on AWS
PPTX
Azure document DB
PDF
Practical Use of a NoSQL
PPTX
Azure DocumentDB 101
PPTX
Why MongoDB over other Databases - Habilelabs
Azure CosmosDb
Zero to 60 with Azure Cosmos DB
Introduction to azure cosmos db
Azure Cosmos DB Pricing 101 Infographic
Practical Use of a NoSQL Database
Webinar: Utilisations courantes de MongoDB
An afternoon with mongo db new delhi
Data Migration to Azure SQL and Azure SQL Managed Instance - June 19 2020
NoSQL for SQL Users
Bi and AI updates in the Microsoft Data Platform stack
Cosmosdb graph
MongoDB Introduction talk at Dr Dobbs Conference, MongoDB Evenings at Bangalo...
Samedi SQL Québec - La plateforme data de Azure
Discovery Day 2019 Sofia - Big data clusters
Maximizing MongoDB Performance on AWS
Azure document DB
Practical Use of a NoSQL
Azure DocumentDB 101
Why MongoDB over other Databases - Habilelabs
Ad

Viewers also liked (17)

PDF
Spring Web Flow
PPTX
Grails with swagger
PPTX
Introduction to es6
PDF
Introduction to gradle
PDF
Java 8 features
PPTX
Progressive Web-App (PWA)
PDF
Introduction to thymeleaf
PPTX
Actors model in gpars
PDF
Reactive java - Reactive Programming + RxJava
PDF
Unit test-using-spock in Grails
PPTX
PPTX
Spring Web Flow
Grails with swagger
Introduction to es6
Introduction to gradle
Java 8 features
Progressive Web-App (PWA)
Introduction to thymeleaf
Actors model in gpars
Reactive java - Reactive Programming + RxJava
Unit test-using-spock in Grails
Ad

Similar to Cosmos DB Service (20)

PPTX
Azure Cosmos DB - Azure Austin Meetup
PPTX
NoSQL Migration Technical Pitch Deck
PPTX
Introduction to Cosmos DB Presentation.pptx
PDF
Cosmos DB - Database for Serverless era
PPTX
cosmodb ppt.pptxfkhkfsgkhgfkfghkhsadaljlsfdfhkgjh
PPTX
Azure Cosmos DB - NET Conf AR 2017 - English
PDF
CosmosDB for DBAs & Developers
PDF
Getting started with Cosmos DB + Linkurious Enterprise
PPTX
NoSQL Migration to Azure Cosmos DB Pitch Deck
PDF
Dealing with Azure Cosmos DB
PPTX
cosmodb ppt project.pptxakfjhaasjfsdajjkfasd
PPTX
cosmodb ppt personal.pptxgskjhkjsfgkhkjgskhk
PDF
EN - Azure - Cosmos DB.pdf
PPTX
Azure cosmos db, Azure no-SQL database,
PDF
SQL or NoSQL, is this the question? - George Grammatikos
PDF
Azure Cosmos DB
PDF
Azure Cosmos DB: Globally Distributed Multi-Model Database Service
PPTX
Azure data platform overview
PPTX
CosmosDB.pptx
PPTX
Cosmos db
Azure Cosmos DB - Azure Austin Meetup
NoSQL Migration Technical Pitch Deck
Introduction to Cosmos DB Presentation.pptx
Cosmos DB - Database for Serverless era
cosmodb ppt.pptxfkhkfsgkhgfkfghkhsadaljlsfdfhkgjh
Azure Cosmos DB - NET Conf AR 2017 - English
CosmosDB for DBAs & Developers
Getting started with Cosmos DB + Linkurious Enterprise
NoSQL Migration to Azure Cosmos DB Pitch Deck
Dealing with Azure Cosmos DB
cosmodb ppt project.pptxakfjhaasjfsdajjkfasd
cosmodb ppt personal.pptxgskjhkjsfgkhkjgskhk
EN - Azure - Cosmos DB.pdf
Azure cosmos db, Azure no-SQL database,
SQL or NoSQL, is this the question? - George Grammatikos
Azure Cosmos DB
Azure Cosmos DB: Globally Distributed Multi-Model Database Service
Azure data platform overview
CosmosDB.pptx
Cosmos db

More from NexThoughts Technologies (20)

PDF
PDF
Docker & kubernetes
PDF
Apache commons
PDF
Microservice Architecture using Spring Boot with React & Redux
PDF
Solid Principles
PDF
Introduction to TypeScript
PDF
Smart Contract samples
PDF
My Doc of geth
PDF
Geth important commands
PDF
Ethereum genesis
PPTX
Springboot Microservices
PDF
An Introduction to Redux
PPTX
Google authentication
Docker & kubernetes
Apache commons
Microservice Architecture using Spring Boot with React & Redux
Solid Principles
Introduction to TypeScript
Smart Contract samples
My Doc of geth
Geth important commands
Ethereum genesis
Springboot Microservices
An Introduction to Redux
Google authentication

Recently uploaded (20)

PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Cloud computing and distributed systems.
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Big Data Technologies - Introduction.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
KodekX | Application Modernization Development
PDF
Approach and Philosophy of On baking technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
cuic standard and advanced reporting.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Spectral efficient network and resource selection model in 5G networks
Advanced Soft Computing BINUS July 2025.pdf
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
“AI and Expert System Decision Support & Business Intelligence Systems”
The AUB Centre for AI in Media Proposal.docx
Cloud computing and distributed systems.
Chapter 3 Spatial Domain Image Processing.pdf
Machine learning based COVID-19 study performance prediction
Empathic Computing: Creating Shared Understanding
Big Data Technologies - Introduction.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
MYSQL Presentation for SQL database connectivity
KodekX | Application Modernization Development
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
GamePlan Trading System Review: Professional Trader's Honest Take
cuic standard and advanced reporting.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectral efficient network and resource selection model in 5G networks

Cosmos DB Service

  • 1. Cosmos DB By Sakshi & Prashant
  • 2. Agenda What is CosmosDB ? Advantages Types MySQL MongoDB
  • 4. What is CosmosDB ? Azure Cosmos DB is Microsoft’s globally-distributed database service "for managing data at planet-scale" launched in May 2017. It builds upon and extends the earlier Azure DocumentDB, which was released in 2014. It is schema-less and generally classified as a NoSQL database
  • 6. Advantages 1. Global distribution We can distribute data to any number of Azure regions, with the click of a button. This enables us to put our data where our users are, ensuring the lowest possible latency to customers. Using Azure Cosmos DB's multi-homing APIs, the app always knows where the nearest region is and will send requests to the nearest data center. 2 Multiple data models and popular APIs for accessing and querying data APIs for the following data models are supported with SDKs available in multiple languages: ■ DocumentDB API ■ MongoDB API ■ Table API ■ Graph (Gremlin) API ■ Additional data models coming soon
  • 7. 3 Elastically scale throughput and storage on demand, worldwide ○ Easily scale database throughput at a per second granularity, and change it anytime you want. ○ Scale storage size transparently and automatically to handle any size requirements now and forever. 4 Build highly responsive and mission-critical applications ○ Azure Cosmos DB guarantees end-to-end low latency at the 99th percentile to its customers. ○ For a typical 1 KB item, Cosmos DB guarantees end-to-end latency of reads under 10 ms and indexed writes under 15 ms at the 99th percentile, within the same Azure region. The median latencies are significantly lower (under 5 ms). 5 Ensure "always on" availability ○ 99.99% availability within a single region. ○ Deploy to any number of Azure regions for higher availability. ○ Simulate a failure of one or more regions with zero-data loss guarantees.
  • 8. 7 No database schema/index management ○ Stop worrying about keeping your database schema and indexes in-sync with your application’s schema. We're schema-free. ○ Azure Cosmos DB’s database engine is fully schema-agnostic – it automatically indexes all the data it ingests without requiring any schema or indexes and serves blazing fast queries. 8 Low cost of ownership ○ Five to ten times more cost effective than a non-managed solution. ○ Three times cheaper than DynamoDB(No SQL)
  • 10. MongoDB/DocumentDB DocumentDb is extended from MongoDB Store data in documents DocumentDB developed by Microsoft MongoDB developed by Mongo db Inc. DocumentDB store data in JSON format while MongoDB store data in BSON
  • 11. Table API in Azure Cosmo Db A key-value store, or key-value database, is a data storage paradigm designed for storing, retrieving, and managing associative arrays, a data structure more commonly known today as a dictionary or hash. Dictionaries contain a collection of objects, or records, which in turn have many different fields within them, each containing data. These records are stored and retrieved using a key that uniquely identifies the record, and is used to quickly find the data within the database.
  • 12. Gremlin API in Azure Cosmo Db Model the real World Relationship as First Class entity Optimized for graph storage and traversal Gremlin Standard
  • 15. MySQL MySQL is the most popular Open Source Relational SQL Database Management System. SLA’s Relational +SQL Data model
  • 16. Setup 1>PEM file mysql -h mysql-prashant.mysql.database.azure.com -u mysql-prashant@mysql-prashant -p --ssl-ca=/home/sakshi/Desktop/BaltimoreCyberTrustRoot.crt.pem 2>Connection url="jdbc:mysql://mysql-prashant.mysql.database.azure.com:3306/demo?verifyServerCertificate =true&useSSL=true&requireSSL=false" dbCreate = "create" logSql = false username = "mysql-prashant@mysql-prashant" password = "Fin@default1"
  • 18. Demo
  • 19. MongoDB MongoDB is a cross-platform, document oriented database that provides, high performance and easy scalability. MongoDB works on concept of collection and document.
  • 21. Setup - connection with Azure MongoDB url = "mongodb://cosmos-prashant-mongo:LOwFwijFWi3v3zC2iUP7oF51b0NSWBAMGo dZrRXznwzX2O2kFd3ZOE3u7DGJedpHpG068JyGWMRFjBvVm8jnTg==@cosmos-pr ashant-mongo.documents.azure.com:10255/azure_session?ssl=true&replicaSet=gl obaldb"
  • 22. Demo