SlideShare a Scribd company logo
1 of 36
16 – 17 November, SofiaISTACON.ORG
Power-up NoSQL with
Cosmos DB
By @RaduVunvulea
16 – 17 November, SofiaISTACON.ORG
RADU VUNVULEA
Technology Enthusiast
Dreamer
Microsoft Azure MVP
Speaker & Trainer
Writer & Blogger
Idealist Software
Architecture Crafter
16 – 17 November, SofiaISTACON.ORG
Purpose
Understand where and how Azure Cosmos
DB can improve our solutions
16 – 17 November, SofiaISTACON.ORG
What is Azure Cosmos DB?
16 – 17 November, SofiaISTACON.ORG
Azure Cosmos DB
Global distribution
Multi-model
Elastic scale-up
Choice of consistency
Guaranteed single-digit latency
Enterprise-level SLA
16 – 17 November, SofiaISTACON.ORG
Azure Cosmos DB
Global distribution
Multi-model
Elastic scale-up
Choice of consistency
Guaranteed single-digit latency
Enterprise-level SLA
Key Value
Column
Family
Document
Graph
16 – 17 November, SofiaISTACON.ORG
Azure Cosmos DB
Global distribution
Multi-model
Elastic scale-up
Choice of consistency
Guaranteed single-digit latency
Enterprise-level SLA
Cross
regions
Independ
and elastic
scale
16 – 17 November, SofiaISTACON.ORG
Azure Cosmos DB
Global distribution
Multi-model
Elastic scale-up
Choice of consistency
Guaranteed single-digit latency
Enterprise-level SLA
Strong
Bounded Staleness
Session
Consistent Prefix
Eventual
16 – 17 November, SofiaISTACON.ORG
Consistency levels
Strong
• Reads are
guaranteed to
return the
most recent
version of an
item.
Bounded
Staleness
• Consistent
Prefix. Reads
lag behind
writes by k
prefixes or t
interval
Session
• Consistent
Prefix.
Monotonic
reads,
monotonic
writes, read-
your-writes,
write-follows-
reads
Consistent
Prefix
• Updates
returned are
some prefix of
all the
updates, with
no gaps
Eventual
• Out of order
reads
16 – 17 November, SofiaISTACON.ORG
Azure Cosmos DB
Global distribution
Multi-model
Elastic scale-up
Choice of consistency
Guaranteed single-digit latency
Enterprise-level SLA
Read <10ms
Write <15ms
99%
16 – 17 November, SofiaISTACON.ORG
Azure Cosmos DB
Global distribution
Multi-model
Elastic scale-up
Choice of consistency
Guaranteed single-digit latency
Enterprise-level SLA
Guaranteed
Consistency
&Throughput
HA
99.99%
Latency
<10ms
16 – 17 November, SofiaISTACON.ORG
Demo
16 – 17 November, SofiaISTACON.ORG
Context
Business Scenario
• Transport platform between
devices and business systems
• Device management
• Command handling
• Payload assignment
• Payload delivery
16 – 17 November, SofiaISTACON.ORG
Command Management
16 – 17 November, SofiaISTACON.ORG
Command Management
Azure Table for each device
High throughput on R/W
Millions of commands per
second
Multiple storage accounts
16 – 17 November, SofiaISTACON.ORG
Command Management
Table used to store commands
No more cross storage
partitioning
Reduce deployment complexity
Removed storage resolver
16 – 17 November, SofiaISTACON.ORG
Command Tracking
16 – 17 November, SofiaISTACON.ORG
Command Tracking
Each command has multiple
states
High throughput on write
operations
Low latency
Timeout detection
Reporting capabilities
16 – 17 November, SofiaISTACON.ORG
Command Tracking
Table used to store commands
Reduce the load on Azure SQL
Scale more easily
Timeout detection using Spark
Generate reports using
Hadoop and PowerBI
16 – 17 November, SofiaISTACON.ORG
Payload Metadata
16 – 17 November, SofiaISTACON.ORG
Payload Metadata
Multiple Azure Tables
High number of read
operations
Never delete a metadata
Replicate across Azure Region
Custom logic for replication
Risk of inconsistency
16 – 17 November, SofiaISTACON.ORG
Payload Metadata
Table used to stored payload
metadata information
Replication across regions
Removed custom
syncronization layer
Reduce load on internal
Service Bus instances
16 – 17 November, SofiaISTACON.ORG
Payload assignment
16 – 17 November, SofiaISTACON.ORG
Payload assignment
Real time calculation
Result caching is not allowed
Requiring computation power
Relies on indexes and virtual
tables
16 – 17 November, SofiaISTACON.ORG
Payload assignment
Doesn’t make sense to migrate
SQL engine is optimized for
this kind of operations
Azure SQL can scale pretty
nice using partitioning
16 – 17 November, SofiaISTACON.ORG
Device Topology
16 – 17 November, SofiaISTACON.ORG
Device Topology
Documents inside MongoDB
There are arround 700.000 different
combinations
New devices appear every month
Synchronization cross region
Risk of inconsistency after a few
years
Writes operations in all nodes
16 – 17 November, SofiaISTACON.ORG
Device Topology
Documents inside Cosmos DB
Remove the custom
synchronization layer
No more inconsistency risk
Support for future devices
16 – 17 November, SofiaISTACON.ORG
Payload Delivery Status
16 – 17 November, SofiaISTACON.ORG
Payload Delivery Status
One Azure Table per device
Multiple storage accounts
Low throughput
No synchronization cross region
Reporting capabilities (hot
discussions)
Storage account resolver
capabilities
16 – 17 November, SofiaISTACON.ORG
Payload Delivery Status
Tables inside Cosmos DB
No need for multiple storage
accounts anymore
Reduce deployment complexity
Good reporting capabilities
Replicate all content to a central
location
16 – 17 November, SofiaISTACON.ORG
Final thoughts
Azure Cosmos DB
16 – 17 November, SofiaISTACON.ORG
Thank you!
@RaduVunvulea
vunvulearadu.blogspot.com
https://www.linkedin.com/in/raduvunvulea/
vunvulear@outlook.com

More Related Content

What's hot

Building Realtime Data Pipelines with Kafka Connect and Spark Streaming: Spar...
Building Realtime Data Pipelines with Kafka Connect and Spark Streaming: Spar...Building Realtime Data Pipelines with Kafka Connect and Spark Streaming: Spar...
Building Realtime Data Pipelines with Kafka Connect and Spark Streaming: Spar...Spark Summit
 
Customer Case Study Containerised Bioinformatics on AWS How we Achieved 20x l...
Customer Case Study Containerised Bioinformatics on AWS How we Achieved 20x l...Customer Case Study Containerised Bioinformatics on AWS How we Achieved 20x l...
Customer Case Study Containerised Bioinformatics on AWS How we Achieved 20x l...Amazon Web Services
 
Building near real-time HTAP solutions using Synapse Link for Azure Cosmos DB
Building near real-time HTAP solutions using Synapse Link for Azure Cosmos DBBuilding near real-time HTAP solutions using Synapse Link for Azure Cosmos DB
Building near real-time HTAP solutions using Synapse Link for Azure Cosmos DBTimothy McAliley
 
Open Air 2016 Mini Talk
Open Air 2016 Mini TalkOpen Air 2016 Mini Talk
Open Air 2016 Mini TalkSky Yin
 
Streaming Data Analytics with Amazon Redshift and Kinesis Firehose
Streaming Data Analytics with Amazon Redshift and Kinesis FirehoseStreaming Data Analytics with Amazon Redshift and Kinesis Firehose
Streaming Data Analytics with Amazon Redshift and Kinesis FirehoseAmazon Web Services
 
Big Data Architectural Patterns and Best Practices on AWS
Big Data Architectural Patterns and Best Practices on AWSBig Data Architectural Patterns and Best Practices on AWS
Big Data Architectural Patterns and Best Practices on AWSAmazon Web Services
 
Athens BigData Meetup - Sept 17
Athens BigData Meetup - Sept 17Athens BigData Meetup - Sept 17
Athens BigData Meetup - Sept 17Landoop Ltd
 
CouchDB + .NET - Relax in Style
CouchDB + .NET - Relax in StyleCouchDB + .NET - Relax in Style
CouchDB + .NET - Relax in StyleChicago ALT.NET
 
Data Science at Netflix with Amazon EMR (BDT306) | AWS re:Invent 2013
Data Science at Netflix with Amazon EMR (BDT306) | AWS re:Invent 2013Data Science at Netflix with Amazon EMR (BDT306) | AWS re:Invent 2013
Data Science at Netflix with Amazon EMR (BDT306) | AWS re:Invent 2013Amazon Web Services
 
"Production-ready Serverless Java Applications in 3 weeks" at AWS Community D...
"Production-ready Serverless Java Applications in 3 weeks" at AWS Community D..."Production-ready Serverless Java Applications in 3 weeks" at AWS Community D...
"Production-ready Serverless Java Applications in 3 weeks" at AWS Community D...Vadym Kazulkin
 
ACDKOCHI19 - Technical Presentation - Connecting 10000 cars to the AWS Cloud
ACDKOCHI19 - Technical Presentation - Connecting 10000 cars to the AWS CloudACDKOCHI19 - Technical Presentation - Connecting 10000 cars to the AWS Cloud
ACDKOCHI19 - Technical Presentation - Connecting 10000 cars to the AWS CloudAWS User Group Kochi
 
Stream Analytics with SQL on Apache Flink
 Stream Analytics with SQL on Apache Flink Stream Analytics with SQL on Apache Flink
Stream Analytics with SQL on Apache FlinkFabian Hueske
 
Intro to Amazon Redshift Spectrum: Quickly Query Exabytes of Data in S3 - Jun...
Intro to Amazon Redshift Spectrum: Quickly Query Exabytes of Data in S3 - Jun...Intro to Amazon Redshift Spectrum: Quickly Query Exabytes of Data in S3 - Jun...
Intro to Amazon Redshift Spectrum: Quickly Query Exabytes of Data in S3 - Jun...Amazon Web Services
 
Designing Data-Intensive Applications
Designing Data-Intensive ApplicationsDesigning Data-Intensive Applications
Designing Data-Intensive ApplicationsOleg Mürk
 
AWS Glue - let's get stuck in!
AWS Glue - let's get stuck in!AWS Glue - let's get stuck in!
AWS Glue - let's get stuck in!Chris Taylor
 
If you doing file uploads with rails you're gonna have a bad time
If you doing file uploads with rails you're gonna have a bad timeIf you doing file uploads with rails you're gonna have a bad time
If you doing file uploads with rails you're gonna have a bad timeDave Rauchwerk
 

What's hot (18)

Building Realtime Data Pipelines with Kafka Connect and Spark Streaming: Spar...
Building Realtime Data Pipelines with Kafka Connect and Spark Streaming: Spar...Building Realtime Data Pipelines with Kafka Connect and Spark Streaming: Spar...
Building Realtime Data Pipelines with Kafka Connect and Spark Streaming: Spar...
 
Customer Case Study Containerised Bioinformatics on AWS How we Achieved 20x l...
Customer Case Study Containerised Bioinformatics on AWS How we Achieved 20x l...Customer Case Study Containerised Bioinformatics on AWS How we Achieved 20x l...
Customer Case Study Containerised Bioinformatics on AWS How we Achieved 20x l...
 
Building near real-time HTAP solutions using Synapse Link for Azure Cosmos DB
Building near real-time HTAP solutions using Synapse Link for Azure Cosmos DBBuilding near real-time HTAP solutions using Synapse Link for Azure Cosmos DB
Building near real-time HTAP solutions using Synapse Link for Azure Cosmos DB
 
Open Air 2016 Mini Talk
Open Air 2016 Mini TalkOpen Air 2016 Mini Talk
Open Air 2016 Mini Talk
 
Streaming Data Analytics with Amazon Redshift and Kinesis Firehose
Streaming Data Analytics with Amazon Redshift and Kinesis FirehoseStreaming Data Analytics with Amazon Redshift and Kinesis Firehose
Streaming Data Analytics with Amazon Redshift and Kinesis Firehose
 
Big Data Architectural Patterns and Best Practices on AWS
Big Data Architectural Patterns and Best Practices on AWSBig Data Architectural Patterns and Best Practices on AWS
Big Data Architectural Patterns and Best Practices on AWS
 
Tech talk firebase
Tech talk   firebaseTech talk   firebase
Tech talk firebase
 
Athens BigData Meetup - Sept 17
Athens BigData Meetup - Sept 17Athens BigData Meetup - Sept 17
Athens BigData Meetup - Sept 17
 
CouchDB + .NET - Relax in Style
CouchDB + .NET - Relax in StyleCouchDB + .NET - Relax in Style
CouchDB + .NET - Relax in Style
 
Data Science at Netflix with Amazon EMR (BDT306) | AWS re:Invent 2013
Data Science at Netflix with Amazon EMR (BDT306) | AWS re:Invent 2013Data Science at Netflix with Amazon EMR (BDT306) | AWS re:Invent 2013
Data Science at Netflix with Amazon EMR (BDT306) | AWS re:Invent 2013
 
"Production-ready Serverless Java Applications in 3 weeks" at AWS Community D...
"Production-ready Serverless Java Applications in 3 weeks" at AWS Community D..."Production-ready Serverless Java Applications in 3 weeks" at AWS Community D...
"Production-ready Serverless Java Applications in 3 weeks" at AWS Community D...
 
ACDKOCHI19 - Technical Presentation - Connecting 10000 cars to the AWS Cloud
ACDKOCHI19 - Technical Presentation - Connecting 10000 cars to the AWS CloudACDKOCHI19 - Technical Presentation - Connecting 10000 cars to the AWS Cloud
ACDKOCHI19 - Technical Presentation - Connecting 10000 cars to the AWS Cloud
 
Stream Analytics with SQL on Apache Flink
 Stream Analytics with SQL on Apache Flink Stream Analytics with SQL on Apache Flink
Stream Analytics with SQL on Apache Flink
 
Intro to Amazon Redshift Spectrum: Quickly Query Exabytes of Data in S3 - Jun...
Intro to Amazon Redshift Spectrum: Quickly Query Exabytes of Data in S3 - Jun...Intro to Amazon Redshift Spectrum: Quickly Query Exabytes of Data in S3 - Jun...
Intro to Amazon Redshift Spectrum: Quickly Query Exabytes of Data in S3 - Jun...
 
Designing Data-Intensive Applications
Designing Data-Intensive ApplicationsDesigning Data-Intensive Applications
Designing Data-Intensive Applications
 
AWS Glue - let's get stuck in!
AWS Glue - let's get stuck in!AWS Glue - let's get stuck in!
AWS Glue - let's get stuck in!
 
If you doing file uploads with rails you're gonna have a bad time
If you doing file uploads with rails you're gonna have a bad timeIf you doing file uploads with rails you're gonna have a bad time
If you doing file uploads with rails you're gonna have a bad time
 
AWS Perú Meetup - Arquitecting for HA by Raul Hugo
AWS Perú Meetup - Arquitecting for HA by Raul HugoAWS Perú Meetup - Arquitecting for HA by Raul Hugo
AWS Perú Meetup - Arquitecting for HA by Raul Hugo
 

Similar to Power-up NoSQL with Cosmos DB

Data Saturday 13 - Minnesota - Cosmos DB and Azure Functions.pptx
Data Saturday 13 - Minnesota - Cosmos DB and Azure Functions.pptxData Saturday 13 - Minnesota - Cosmos DB and Azure Functions.pptx
Data Saturday 13 - Minnesota - Cosmos DB and Azure Functions.pptxLuis Beltran
 
NoSQL Migration to Azure Cosmos DB Pitch Deck
NoSQL Migration to Azure Cosmos DB Pitch DeckNoSQL Migration to Azure Cosmos DB Pitch Deck
NoSQL Migration to Azure Cosmos DB Pitch DeckNicholas Vossburg
 
Azure CosmosDB the new frontier of big data and nosql
Azure CosmosDB the new frontier of big data and nosqlAzure CosmosDB the new frontier of big data and nosql
Azure CosmosDB the new frontier of big data and nosqlRiccardo Cappello
 
OSS DB on Azure
OSS DB on AzureOSS DB on Azure
OSS DB on Azurerockplace
 
Node.CQ - Creating Real-time Data Mashups with Node.JS and Adobe CQ
Node.CQ - Creating Real-time Data Mashups with Node.JS and Adobe CQNode.CQ - Creating Real-time Data Mashups with Node.JS and Adobe CQ
Node.CQ - Creating Real-time Data Mashups with Node.JS and Adobe CQJoshua Miller
 
Azure Databricks is Easier Than You Think
Azure Databricks is Easier Than You ThinkAzure Databricks is Easier Than You Think
Azure Databricks is Easier Than You ThinkIke Ellis
 
Migrating your Databases to AWS: Deep Dive on Amazon RDS and AWS Database Mig...
Migrating your Databases to AWS: Deep Dive on Amazon RDS and AWS Database Mig...Migrating your Databases to AWS: Deep Dive on Amazon RDS and AWS Database Mig...
Migrating your Databases to AWS: Deep Dive on Amazon RDS and AWS Database Mig...Amazon Web Services
 
Creating Real-Time Data Mashups with Node.JS and Adobe CQ
Creating Real-Time Data Mashups with Node.JS and Adobe CQCreating Real-Time Data Mashups with Node.JS and Adobe CQ
Creating Real-Time Data Mashups with Node.JS and Adobe CQiCiDIGITAL
 
Data Pipeline for The Big Data/Data Science OKC
Data Pipeline for The Big Data/Data Science OKCData Pipeline for The Big Data/Data Science OKC
Data Pipeline for The Big Data/Data Science OKCMark Smith
 
Options for running Kubernetes at scale across multiple cloud providers
Options for running Kubernetes at scale across multiple cloud providersOptions for running Kubernetes at scale across multiple cloud providers
Options for running Kubernetes at scale across multiple cloud providersSAP HANA Cloud Platform
 
Running in multiple data centers
Running in multiple data centersRunning in multiple data centers
Running in multiple data centersNikolay Stoitsev
 
Databases & Analytics AWS re:invent 2019 Recap
Databases & Analytics AWS re:invent 2019 RecapDatabases & Analytics AWS re:invent 2019 Recap
Databases & Analytics AWS re:invent 2019 RecapSungmin Kim
 
Solutions for bi-directional Integration between Oracle RDMBS & Apache Kafka
Solutions for bi-directional Integration between Oracle RDMBS & Apache KafkaSolutions for bi-directional Integration between Oracle RDMBS & Apache Kafka
Solutions for bi-directional Integration between Oracle RDMBS & Apache KafkaGuido Schmutz
 
Azure cosmos db, Azure no-SQL database,
Azure cosmos db, Azure no-SQL database, Azure cosmos db, Azure no-SQL database,
Azure cosmos db, Azure no-SQL database, BRIJESH KUMAR
 
CouchDB and Rails on the Cloud
CouchDB and Rails on the CloudCouchDB and Rails on the Cloud
CouchDB and Rails on the Cloudrockyjaiswal
 
NoSQL Migration Technical Pitch Deck
NoSQL Migration Technical Pitch DeckNoSQL Migration Technical Pitch Deck
NoSQL Migration Technical Pitch DeckNicholas Vossburg
 
AWS November Webinar Series - Aurora Deep Dive
AWS November Webinar Series - Aurora Deep DiveAWS November Webinar Series - Aurora Deep Dive
AWS November Webinar Series - Aurora Deep DiveAmazon Web Services
 
AWS Public Cloud solution for ABC Corporation
AWS Public Cloud solution for ABC CorporationAWS Public Cloud solution for ABC Corporation
AWS Public Cloud solution for ABC CorporationManpreet Sidhu
 

Similar to Power-up NoSQL with Cosmos DB (20)

Data Saturday 13 - Minnesota - Cosmos DB and Azure Functions.pptx
Data Saturday 13 - Minnesota - Cosmos DB and Azure Functions.pptxData Saturday 13 - Minnesota - Cosmos DB and Azure Functions.pptx
Data Saturday 13 - Minnesota - Cosmos DB and Azure Functions.pptx
 
NoSQL Migration to Azure Cosmos DB Pitch Deck
NoSQL Migration to Azure Cosmos DB Pitch DeckNoSQL Migration to Azure Cosmos DB Pitch Deck
NoSQL Migration to Azure Cosmos DB Pitch Deck
 
Deep Dive on Amazon Aurora
Deep Dive on Amazon AuroraDeep Dive on Amazon Aurora
Deep Dive on Amazon Aurora
 
Azure CosmosDB the new frontier of big data and nosql
Azure CosmosDB the new frontier of big data and nosqlAzure CosmosDB the new frontier of big data and nosql
Azure CosmosDB the new frontier of big data and nosql
 
OSS DB on Azure
OSS DB on AzureOSS DB on Azure
OSS DB on Azure
 
Node.CQ - Creating Real-time Data Mashups with Node.JS and Adobe CQ
Node.CQ - Creating Real-time Data Mashups with Node.JS and Adobe CQNode.CQ - Creating Real-time Data Mashups with Node.JS and Adobe CQ
Node.CQ - Creating Real-time Data Mashups with Node.JS and Adobe CQ
 
Azure Databricks is Easier Than You Think
Azure Databricks is Easier Than You ThinkAzure Databricks is Easier Than You Think
Azure Databricks is Easier Than You Think
 
Migrating your Databases to AWS: Deep Dive on Amazon RDS and AWS Database Mig...
Migrating your Databases to AWS: Deep Dive on Amazon RDS and AWS Database Mig...Migrating your Databases to AWS: Deep Dive on Amazon RDS and AWS Database Mig...
Migrating your Databases to AWS: Deep Dive on Amazon RDS and AWS Database Mig...
 
Creating Real-Time Data Mashups with Node.JS and Adobe CQ
Creating Real-Time Data Mashups with Node.JS and Adobe CQCreating Real-Time Data Mashups with Node.JS and Adobe CQ
Creating Real-Time Data Mashups with Node.JS and Adobe CQ
 
Data Pipeline for The Big Data/Data Science OKC
Data Pipeline for The Big Data/Data Science OKCData Pipeline for The Big Data/Data Science OKC
Data Pipeline for The Big Data/Data Science OKC
 
Options for running Kubernetes at scale across multiple cloud providers
Options for running Kubernetes at scale across multiple cloud providersOptions for running Kubernetes at scale across multiple cloud providers
Options for running Kubernetes at scale across multiple cloud providers
 
Running in multiple data centers
Running in multiple data centersRunning in multiple data centers
Running in multiple data centers
 
Databases & Analytics AWS re:invent 2019 Recap
Databases & Analytics AWS re:invent 2019 RecapDatabases & Analytics AWS re:invent 2019 Recap
Databases & Analytics AWS re:invent 2019 Recap
 
Solutions for bi-directional Integration between Oracle RDMBS & Apache Kafka
Solutions for bi-directional Integration between Oracle RDMBS & Apache KafkaSolutions for bi-directional Integration between Oracle RDMBS & Apache Kafka
Solutions for bi-directional Integration between Oracle RDMBS & Apache Kafka
 
Azure cosmos db, Azure no-SQL database,
Azure cosmos db, Azure no-SQL database, Azure cosmos db, Azure no-SQL database,
Azure cosmos db, Azure no-SQL database,
 
CouchDB and Rails on the Cloud
CouchDB and Rails on the CloudCouchDB and Rails on the Cloud
CouchDB and Rails on the Cloud
 
NoSQL Migration Technical Pitch Deck
NoSQL Migration Technical Pitch DeckNoSQL Migration Technical Pitch Deck
NoSQL Migration Technical Pitch Deck
 
NoSQL - what's that
NoSQL - what's thatNoSQL - what's that
NoSQL - what's that
 
AWS November Webinar Series - Aurora Deep Dive
AWS November Webinar Series - Aurora Deep DiveAWS November Webinar Series - Aurora Deep Dive
AWS November Webinar Series - Aurora Deep Dive
 
AWS Public Cloud solution for ABC Corporation
AWS Public Cloud solution for ABC CorporationAWS Public Cloud solution for ABC Corporation
AWS Public Cloud solution for ABC Corporation
 

Recently uploaded

Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimaginedpanagenda
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightSafe Software
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)Samir Dash
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...FIDO Alliance
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...ScyllaDB
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...panagenda
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!Memoori
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsLeah Henrickson
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewDianaGray10
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGDSC PJATK
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdfMuhammad Subhan
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Skynet Technologies
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityVictorSzoltysek
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxFIDO Alliance
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهMohamed Sweelam
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptxFIDO Alliance
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...ScyllaDB
 

Recently uploaded (20)

Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 

Power-up NoSQL with Cosmos DB

  • 1. 16 – 17 November, SofiaISTACON.ORG Power-up NoSQL with Cosmos DB By @RaduVunvulea
  • 2.
  • 3. 16 – 17 November, SofiaISTACON.ORG RADU VUNVULEA Technology Enthusiast Dreamer Microsoft Azure MVP Speaker & Trainer Writer & Blogger Idealist Software Architecture Crafter
  • 4. 16 – 17 November, SofiaISTACON.ORG Purpose Understand where and how Azure Cosmos DB can improve our solutions
  • 5. 16 – 17 November, SofiaISTACON.ORG What is Azure Cosmos DB?
  • 6. 16 – 17 November, SofiaISTACON.ORG Azure Cosmos DB Global distribution Multi-model Elastic scale-up Choice of consistency Guaranteed single-digit latency Enterprise-level SLA
  • 7. 16 – 17 November, SofiaISTACON.ORG Azure Cosmos DB Global distribution Multi-model Elastic scale-up Choice of consistency Guaranteed single-digit latency Enterprise-level SLA Key Value Column Family Document Graph
  • 8. 16 – 17 November, SofiaISTACON.ORG Azure Cosmos DB Global distribution Multi-model Elastic scale-up Choice of consistency Guaranteed single-digit latency Enterprise-level SLA Cross regions Independ and elastic scale
  • 9. 16 – 17 November, SofiaISTACON.ORG Azure Cosmos DB Global distribution Multi-model Elastic scale-up Choice of consistency Guaranteed single-digit latency Enterprise-level SLA Strong Bounded Staleness Session Consistent Prefix Eventual
  • 10. 16 – 17 November, SofiaISTACON.ORG Consistency levels Strong • Reads are guaranteed to return the most recent version of an item. Bounded Staleness • Consistent Prefix. Reads lag behind writes by k prefixes or t interval Session • Consistent Prefix. Monotonic reads, monotonic writes, read- your-writes, write-follows- reads Consistent Prefix • Updates returned are some prefix of all the updates, with no gaps Eventual • Out of order reads
  • 11. 16 – 17 November, SofiaISTACON.ORG Azure Cosmos DB Global distribution Multi-model Elastic scale-up Choice of consistency Guaranteed single-digit latency Enterprise-level SLA Read <10ms Write <15ms 99%
  • 12. 16 – 17 November, SofiaISTACON.ORG Azure Cosmos DB Global distribution Multi-model Elastic scale-up Choice of consistency Guaranteed single-digit latency Enterprise-level SLA Guaranteed Consistency &Throughput HA 99.99% Latency <10ms
  • 13. 16 – 17 November, SofiaISTACON.ORG Demo
  • 14. 16 – 17 November, SofiaISTACON.ORG Context
  • 15. Business Scenario • Transport platform between devices and business systems • Device management • Command handling • Payload assignment • Payload delivery
  • 16. 16 – 17 November, SofiaISTACON.ORG Command Management
  • 17. 16 – 17 November, SofiaISTACON.ORG Command Management Azure Table for each device High throughput on R/W Millions of commands per second Multiple storage accounts
  • 18. 16 – 17 November, SofiaISTACON.ORG Command Management Table used to store commands No more cross storage partitioning Reduce deployment complexity Removed storage resolver
  • 19. 16 – 17 November, SofiaISTACON.ORG Command Tracking
  • 20. 16 – 17 November, SofiaISTACON.ORG Command Tracking Each command has multiple states High throughput on write operations Low latency Timeout detection Reporting capabilities
  • 21. 16 – 17 November, SofiaISTACON.ORG Command Tracking Table used to store commands Reduce the load on Azure SQL Scale more easily Timeout detection using Spark Generate reports using Hadoop and PowerBI
  • 22. 16 – 17 November, SofiaISTACON.ORG Payload Metadata
  • 23. 16 – 17 November, SofiaISTACON.ORG Payload Metadata Multiple Azure Tables High number of read operations Never delete a metadata Replicate across Azure Region Custom logic for replication Risk of inconsistency
  • 24. 16 – 17 November, SofiaISTACON.ORG Payload Metadata Table used to stored payload metadata information Replication across regions Removed custom syncronization layer Reduce load on internal Service Bus instances
  • 25. 16 – 17 November, SofiaISTACON.ORG Payload assignment
  • 26. 16 – 17 November, SofiaISTACON.ORG Payload assignment Real time calculation Result caching is not allowed Requiring computation power Relies on indexes and virtual tables
  • 27. 16 – 17 November, SofiaISTACON.ORG Payload assignment Doesn’t make sense to migrate SQL engine is optimized for this kind of operations Azure SQL can scale pretty nice using partitioning
  • 28. 16 – 17 November, SofiaISTACON.ORG Device Topology
  • 29. 16 – 17 November, SofiaISTACON.ORG Device Topology Documents inside MongoDB There are arround 700.000 different combinations New devices appear every month Synchronization cross region Risk of inconsistency after a few years Writes operations in all nodes
  • 30. 16 – 17 November, SofiaISTACON.ORG Device Topology Documents inside Cosmos DB Remove the custom synchronization layer No more inconsistency risk Support for future devices
  • 31. 16 – 17 November, SofiaISTACON.ORG Payload Delivery Status
  • 32. 16 – 17 November, SofiaISTACON.ORG Payload Delivery Status One Azure Table per device Multiple storage accounts Low throughput No synchronization cross region Reporting capabilities (hot discussions) Storage account resolver capabilities
  • 33. 16 – 17 November, SofiaISTACON.ORG Payload Delivery Status Tables inside Cosmos DB No need for multiple storage accounts anymore Reduce deployment complexity Good reporting capabilities Replicate all content to a central location
  • 34. 16 – 17 November, SofiaISTACON.ORG Final thoughts
  • 36. 16 – 17 November, SofiaISTACON.ORG Thank you! @RaduVunvulea vunvulearadu.blogspot.com https://www.linkedin.com/in/raduvunvulea/ vunvulear@outlook.com

Editor's Notes

  1. Image sourcehttps://pixabay.com/en/milky-way-universe-person-stars-1023340/