Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and...

28
Rock your MongoDB and Graph databases in cloud with CosmosDB Reenu Saluja Sr. Technology Evangelist Microsoft Twitter : @ reenusaluja

Transcript of Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and...

Page 1: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Rock your MongoDB and Graph databases in cloud with CosmosDBReenu SalujaSr. Technology EvangelistMicrosoftTwitter : @ reenusaluja

Page 2: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Mission-critical applications for a global userbase need …

Global distribution

Elasticity of compute and

storage

Durable, Consistent and Highly available

Fast, Responsivemillisecond latency

Building globally distributed applications

Page 3: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Put your data where your users are

Page 4: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Developing planet-scale apps comes with planet-scale challenges

Scaling both throughput and storage based on global demand

Delivering highly-responsive experiences

Ensuring an always-on system

Write accurate, globally distributed apps

Managing and versioning evolving schemas

Balancing the needs for strong and eventual consistency

Page 5: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Introducing Azure Cosmos DBA globally distributed, massively scalable, multi-model database service

Global distribution

Automatically replicate all your data around the world – across more regions than Amazon and Google combined

Page 6: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Introducing Azure Cosmos DBA globally distributed, massively scalable, multi-model database service

Global distribution

Multi-model + multi API

Use key-value, graph, and document with a schema-agnostic service that doesn’t require any schema or secondary indexes

KEY-VALUE COLUMN-FAMILY

DOCUMENT GRAPH

Page 7: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Introducing Azure Cosmos DBA globally distributed, massively scalable, multi-model database service

Global distribution

Multi-model + multi API

Elastic scale-out

Independently and elastically scale storage and throughput across regions

Page 8: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Introducing Azure Cosmos DBA globally distributed, massively scalable, multi-model database service

Global distribution

Multi-model + multi API

Elastic scale-out

Choice of consistency

Choose from five defined consistency levels for low latency and high availability

Strong Bounded-stateless Session Consistent prefix Eventual

Page 9: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Introducing Azure Cosmos DBA globally distributed, massively scalable, multi-model database service

Global distribution

Multi-model + multi API

Elastic scale-out

Choice of consistency

Serve <10 ms read and <15 ms write requests at the 99th percentile from the nearest region while delivering data globally

Guaranteed single-digit latency

Guaranteed global millisecond latency at the 99th percentile

Page 10: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Introducing Azure Cosmos DBA globally distributed, massively scalable, multi-model database service

Global distribution

Multi-model + multi API

Elastic scale-out

Choice of consistency

Guaranteed single-digit latency

Only service with financially-backed SLAs for millisecond latency at the 99th percentile, 99.99% HA and guaranteed throughput and consistency

99.99%

HA

Throughput

Guaranteed

Consistency

Guaranteed

Enterprise-level SLAs

<10ms

Latency

99th

percentile

Page 11: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Introducing Azure Cosmos DBA globally distributed, massively scalable, multi-model database service

Global distribution

Multi-model + multi API

Elastic scale-out

Choice of consistency

Guaranteed single-digit latency

Enterprise-level SLAs

Page 12: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

A globally distributed, massively scalable, multi-model database service

Column-family Document

Graph

Turnkey global distribution

Elastic scale out of storage & throughput

Guaranteed low latency at the 99th percentile

Comprehensive SLAs

Five well-defined consistency models

Table API

Key-value

Azure Cosmos DB

MongoDB API

Page 13: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Azure Cosmos DB: MongoDB APIA globally distributed, massively scalable, multi-model database service

MongoDB Compatibility

Leverage existing MongoDB drivers, libraries, and tools with the globally distributed, multi-model Azure Cosmos DB database.

MongoDB Queries

CRUD operations

Mongo shell

Sharding

Replica-sets

Mongodump

Mongorestore

Mongoimport

Robomongo

Studio 3T

……

Import/Export data using mongo tools.

Existing MongoDB application continue to use the same SDK’s

View/Manage your data using tools like mongo shell/Robo 3T etc.

Horizontally scale your data using shards

Page 14: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Azure Cosmos DB: MongoDB APIA globally distributed, massively scalable, multi-model database service

MongoDB Compatibility

Turnkey geo-replication

No need to add/remove replica-sets. Replicate your data to any Azure region using Azure Portal / CLI

Page 15: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Azure Cosmos DB: MongoDB APIA globally distributed, massively scalable, multi-model database service

MongoDB Compatibility

Turnkey geo-replication

No need to add/remove replica-sets. Replicate your data to any Azure region using Azure Portal / CLI

# Replicate in multiple regions az cosmosdb update \ --name $name \ --resource-group $resourceGroupName \ --locations "South Central US"=0 “West Europe"=1 “South India"=2 “Southeast Asia"=3 “East Asia"=4

Page 16: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Azure Cosmos DB: MongoDB APIA globally distributed, massively scalable, multi-model database service

MongoDB Compatibility

Automatically index your schema-less data without compromising performance on writes and reads.

Physical index

Schema

Turnkey geo-replication

Automatic indexing

Page 17: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Azure Cosmos DB: MongoDB APIA globally distributed, massively scalable, multi-model database service

MongoDB Compatibility

Turnkey geo-replication

Automatically index your schema-less data without compromising performance on writes and reads.

{ "locations": [ { "country": "Germany", "city": "Berlin" }, { "country": "France", "city": "Paris" } ], "headquarter": "Belgium", "exports":[{ "city": "Moscow" },{ "city": "Athens"}]}

locations headquarter exports

0 1

country

Germany

city

Berlin

country

France

city

Paris

city

Moscow

city

Athens

Belgium 0 1

Automatic indexing

Page 18: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Azure Cosmos DB: MongoDB APIA globally distributed, massively scalable, multi-model database service

MongoDB Compatibility

Multi-tenant databases are always more cost effective.

Cost

$

$

10x

3x

Azure Cosmos DB DynamoDB On-premises Open-source

NoSQL

Industry leading TCO (Total Cost of Ownership)

Turnkey geo-replication

Automatic indexing

Page 19: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Azure Cosmos DB: MongoDB APIA globally distributed, massively scalable, multi-model database service

MongoDB Compatibility

Industry leading TCO (Total Cost of Ownership)

Support for enterprise grade security features to protect your database

IP firewall

Master + read-only keys

Encryption at rest

Built-in RBAC support

Encryption in transit (SSL)Security

Turnkey geo-replication

Automatic indexing

Page 20: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Azure Cosmos DB: MongoDB APIA globally distributed, massively scalable, multi-model database service

MongoDB Compatibility

Azure Cosmos DB adheres to multiple international and industry-specific compliance standards. Rigorous third-party audits verify the service’s adherence to the strict mandated security controls.

Compliance

ISO/IEC 27018

HIPAA and the HITECH Act

European Union Model Clauses

Payment Card Industry (PCI) Data Security Standard (DSS)

SOC 1 & 2

Industry leading TCO (Total Cost of Ownership)

Turnkey geo-replication

Automatic indexing

Security

Page 21: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Demo

MongoDB API

Page 22: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Cosmos DB Graph API

Independently scalable graph engine

Optimized for relationship traversals

Schema freedom of attributes on nodes & edges

Support massive graphs Same distributed systems

stack with millisecond latency, global distribution, 99.99% SLAs, enterprise-ready features

Page 23: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Cosmos DB Graph API

Work with any TinkerPop client driver (Java, Python, Node.js, …)

First-party .NET client SDK with in-process Gremlin server (direct connectivity for low latency)

Work with Gremlin console Work with Apache Spark on

HDInsight for graph analytics

Page 24: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Demo

GraphDB API

Page 25: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

at https://azure.microsoft.com/en-us/try/cosmosdb/

Page 26: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

Q/A

Page 27: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

© 2017 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing marketconditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Page 28: Rock your MongoDB and Graph databases in cloud with CosmosDB · PDF fileRock your MongoDB and Graph databases in cloud with CosmosDB ... planet-scale challenges ... MongoDB API A globally

© Copyright Microsoft Corporation. All rights reserved.