SlideShare a Scribd company logo
Cosmos DB + Azure Functions: A
serverless database processing
Luis Beltrán
luis@luisbeltran.mx
@darkicebeam
Luis Beltrán
Agenda
• Azure Cosmos DB
• Azure Functions
• Integration
• Demo
• Call to Action
Azure Cosmos DB
A globally-accessible NoSQL database service for modern application development
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
A globally distributed, massively scalable, multi-model database service
Cosmos DB’s API for
MongoDB
Azure Cosmos DB
Elastically Scale Storage and Throughput
Independently and elastically scale
storage and throughput across
regions – even during unpredictable
traffic bursts – with a database that
adapts to your app’s needs.
• Elastically scale throughput from 10
to 100s of millions of requests/sec
across multiple regions
• Scale throughput automatically
using autopilot mode
• Only pay for the throughput and
storage you need
Guaranteed Low Latency
Provide users around the world
with fast access to data
• Serve single digit millisecond
reads and writes
• Guarantee that reads and writes
of documents 1 KB or smaller will
be < 10 ms at the 99% percentile
Turnkey Global Distribution
Put your data where your users are in
minutes
Automatically replicate all your data
around the world, and across more
regions than Amazon and Google
combined.
• Available in all Azure regions
• Manual and automatic failover
• Automatic & synchronous multi-region
replication
• Configure multiple write regions to
further reduce latency and increase
availability
Five Well-Defined Consistency Models
Choose the best consistency model for your app
• Offers five consistency models
• Provides control over performance-consistency tradeoffs, backed by
comprehensive SLAs.
• An intuitive programming model offering low latency and high availability for
your planet-scale app.
Multiple Data Models and APIs
Use the model that fits your requirements, and the apis, tools, and
frameworks you prefer
• Cosmos DB offers a multitude of APIs to access and query data including, SQL,
various popular OSS APIs, and native support for NoSQL workloads.
• Use key-value, columnar, graph, and document data
• Data is automatically indexed, with no schema or secondary indexes required
• Blazing fast queries with no lag
Scenario I
Optimization of IoT and Big
Data operations in
subsidiaries:
• Remote well monitoring
• Collecting performance data
• Profitable
• Device management
• Data transmission
• Analysis automation
Scenario II
Delivering high-quality,
scalable experiences:
• A database that seamlessly
responds to massive
performance demands
• Low latency multiplayer
game
• Instant scalability
• Uninterrupted user
experience globally
Azure Functions
Process events with serverless code
PaaS
IaaS
On-premises Serverless
How do I architect my app?
Serverless, the cloud native platform
The evolution of application platforms
What is Serverless?
Event-driven / instant-scale Micro-billing
Abstraction of servers
Manage apps, not servers Faster time to market
Reduced DevOps
Serverless application platform components
Development Platform
Azure Functions
Code Data + Events
Azure Functions
Your code runs when a
(previously-specified)
event occurs
Triggers
Blob Storage
Cosmos DB
Event Hub
HTTP
Queues
Service Bus
Timer
Webhook
Photo taken and sent
Upload it to
blob storage
Produce scalated images
Bindings
File
Table
Excel
OneDrive
Email
Mobile app
Notification
…
Use Bindings in Your Code
public static void Run(byte[] image, string filename,
Stream outputBlob, TraceWriter log)
{
log.Info($"Processing image: {filename}");
var imageBuilder = ImageResizer.ImageBuilder.Current;
imageBuilder.Build(
image, outputBlob,
new ResizeSettings(640, 400, FitMode.Max, null), false);
}
{
"bindings": [
{
"name": "image",
"type": "blobTrigger",
"direction": "in",
"path": "card-input/{filename}.jpg",
"connection": "AzureWebJobsStorage"
},
{
"type": "blob",
"name": "outputBlob",
"path": "card-output/{filename}.jpg",
"connection": "AzureWebJobsStorage",
"direction": "out"
}
]
}
Integration
Azure Functions + Azure Cosmos DB
Serverless database computing using Azure
Cosmos DB and Azure Functions
• With the native integration between Azure Cosmos DB and Azure
Functions, you can create database triggers, input bindings, and
output bindings directly from your Azure Cosmos DB account.
• Using Azure Functions and Azure Cosmos DB, you can create and
deploy event-driven serverless apps with low-latency access to rich
data for a global user base.
• Azure Cosmos DB and Azure Functions enable you to integrate your
databases and serverless apps in three ways.
Cosmos DB Trigger
Create an event-driven Azure Functions trigger for Cosmos DB. This
trigger relies on change feed streams to monitor your Azure Cosmos
container for changes.
When any changes are made to a container, the change feed stream is
sent to the trigger, which invokes the Azure Function.
Cosmos DB Input Binding
Alternatively, you can bind an Azure Function to an Azure Cosmos
container using an input binding.
Input bindings read data from a container when a function executes.
Cosmos DB Output Binding
The third option is to bind a function to an Azure Cosmos container
using an output binding.
Output bindings write data to a container when a function completes.
Demo
Creating a serverless Cosmos DB API
Get Data
Insert Data
Update Data
Delete Data
Call to Action
Learn more…
Serverless database computing con Azure Cosmos DB y Azure Functions
https://docs.microsoft.com/en-us/azure/cosmos-db/serverless-
computing-database
Azure Cosmos DB and Azure Functions integration
https://youtu.be/L88quzuyjDY
Q & A
Thank you for your attention
Luis Beltrán
Tomás Bata University in Zlín
Tecnológico Nacional de México en Celaya
About Me:
https://about.me/luis-beltran

More Related Content

What's hot

Getting Started with Elasticsearch
Getting Started with ElasticsearchGetting Started with Elasticsearch
Getting Started with Elasticsearch
Alibaba Cloud
 
Experiences using CouchDB inside Microsoft's Azure team
Experiences using CouchDB inside Microsoft's Azure teamExperiences using CouchDB inside Microsoft's Azure team
Experiences using CouchDB inside Microsoft's Azure team
Brian Benz
 
Azure cosmos db
Azure cosmos dbAzure cosmos db
Azure cosmos db
Bill Liu
 
AWS Lambda in C#
AWS Lambda in C#AWS Lambda in C#
AWS Lambda in C#
Amazon Web Services
 
Serverless Comparison: AWS vs Azure vs Google vs IBM
Serverless Comparison: AWS vs Azure vs Google vs IBMServerless Comparison: AWS vs Azure vs Google vs IBM
Serverless Comparison: AWS vs Azure vs Google vs IBM
RightScale
 
Tokyo azure meetup #2 big data made easy
Tokyo azure meetup #2   big data made easyTokyo azure meetup #2   big data made easy
Tokyo azure meetup #2 big data made easy
Tokyo Azure Meetup
 
Using Jupyter Notebooks to Run Deep Learning Algorithms - AWS Online Tech Talks
Using Jupyter Notebooks to Run Deep Learning Algorithms - AWS Online Tech TalksUsing Jupyter Notebooks to Run Deep Learning Algorithms - AWS Online Tech Talks
Using Jupyter Notebooks to Run Deep Learning Algorithms - AWS Online Tech Talks
Amazon Web Services
 
使用 Blox 實現容器任務調度與資源編排
使用 Blox 實現容器任務調度與資源編排使用 Blox 實現容器任務調度與資源編排
使用 Blox 實現容器任務調度與資源編排
Amazon Web Services
 
Serverless Messaging with Microsoft Azure by Steef-Jan Wiggers
Serverless Messaging with Microsoft Azure by Steef-Jan WiggersServerless Messaging with Microsoft Azure by Steef-Jan Wiggers
Serverless Messaging with Microsoft Azure by Steef-Jan Wiggers
Adam Walhout
 
Trying out the Go language with Google App Engine
Trying out the Go language with Google App EngineTrying out the Go language with Google App Engine
Trying out the Go language with Google App Engine
Lynn Langit
 
MongoDB World 2016: Scaling Targeted Notifications in the Music Streaming Wor...
MongoDB World 2016: Scaling Targeted Notifications in the Music Streaming Wor...MongoDB World 2016: Scaling Targeted Notifications in the Music Streaming Wor...
MongoDB World 2016: Scaling Targeted Notifications in the Music Streaming Wor...
MongoDB
 
Managing application & instance state on AWS
Managing application & instance state on AWSManaging application & instance state on AWS
Managing application & instance state on AWS
David Mat
 
Go Serverless with Cosmos DB, Azure Functions and Blazor
Go Serverless with Cosmos DB, Azure Functions and BlazorGo Serverless with Cosmos DB, Azure Functions and Blazor
Go Serverless with Cosmos DB, Azure Functions and Blazor
Timothy McAliley
 
Introduction to Azure Functions
Introduction to Azure FunctionsIntroduction to Azure Functions
Introduction to Azure Functions
Callon Campbell
 
ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2
ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2
ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2
European Collaboration Summit
 
Elastic Search Meetup Special - Yann Cluchey, Cogenta
Elastic Search Meetup Special - Yann Cluchey, Cogenta Elastic Search Meetup Special - Yann Cluchey, Cogenta
Elastic Search Meetup Special - Yann Cluchey, Cogenta
Internet World
 
Cnam cours azure cloud services
Cnam cours azure  cloud servicesCnam cours azure  cloud services
Cnam cours azure cloud services
Aymeric Weinbach
 
Migrating My.T-Mobile.com to AWS (ENT214) | AWS re:Invent 2013
Migrating My.T-Mobile.com to AWS (ENT214) | AWS re:Invent 2013Migrating My.T-Mobile.com to AWS (ENT214) | AWS re:Invent 2013
Migrating My.T-Mobile.com to AWS (ENT214) | AWS re:Invent 2013
Amazon Web Services
 
Gaming in the Cloud at Websummit Dublin
Gaming in the Cloud at Websummit DublinGaming in the Cloud at Websummit Dublin
Gaming in the Cloud at Websummit Dublin
Ian Massingham
 
Key Design Considerations Private and Hybrid Clouds - RightScale Compute 2013
Key Design Considerations Private and Hybrid Clouds - RightScale Compute 2013Key Design Considerations Private and Hybrid Clouds - RightScale Compute 2013
Key Design Considerations Private and Hybrid Clouds - RightScale Compute 2013
RightScale
 

What's hot (20)

Getting Started with Elasticsearch
Getting Started with ElasticsearchGetting Started with Elasticsearch
Getting Started with Elasticsearch
 
Experiences using CouchDB inside Microsoft's Azure team
Experiences using CouchDB inside Microsoft's Azure teamExperiences using CouchDB inside Microsoft's Azure team
Experiences using CouchDB inside Microsoft's Azure team
 
Azure cosmos db
Azure cosmos dbAzure cosmos db
Azure cosmos db
 
AWS Lambda in C#
AWS Lambda in C#AWS Lambda in C#
AWS Lambda in C#
 
Serverless Comparison: AWS vs Azure vs Google vs IBM
Serverless Comparison: AWS vs Azure vs Google vs IBMServerless Comparison: AWS vs Azure vs Google vs IBM
Serverless Comparison: AWS vs Azure vs Google vs IBM
 
Tokyo azure meetup #2 big data made easy
Tokyo azure meetup #2   big data made easyTokyo azure meetup #2   big data made easy
Tokyo azure meetup #2 big data made easy
 
Using Jupyter Notebooks to Run Deep Learning Algorithms - AWS Online Tech Talks
Using Jupyter Notebooks to Run Deep Learning Algorithms - AWS Online Tech TalksUsing Jupyter Notebooks to Run Deep Learning Algorithms - AWS Online Tech Talks
Using Jupyter Notebooks to Run Deep Learning Algorithms - AWS Online Tech Talks
 
使用 Blox 實現容器任務調度與資源編排
使用 Blox 實現容器任務調度與資源編排使用 Blox 實現容器任務調度與資源編排
使用 Blox 實現容器任務調度與資源編排
 
Serverless Messaging with Microsoft Azure by Steef-Jan Wiggers
Serverless Messaging with Microsoft Azure by Steef-Jan WiggersServerless Messaging with Microsoft Azure by Steef-Jan Wiggers
Serverless Messaging with Microsoft Azure by Steef-Jan Wiggers
 
Trying out the Go language with Google App Engine
Trying out the Go language with Google App EngineTrying out the Go language with Google App Engine
Trying out the Go language with Google App Engine
 
MongoDB World 2016: Scaling Targeted Notifications in the Music Streaming Wor...
MongoDB World 2016: Scaling Targeted Notifications in the Music Streaming Wor...MongoDB World 2016: Scaling Targeted Notifications in the Music Streaming Wor...
MongoDB World 2016: Scaling Targeted Notifications in the Music Streaming Wor...
 
Managing application & instance state on AWS
Managing application & instance state on AWSManaging application & instance state on AWS
Managing application & instance state on AWS
 
Go Serverless with Cosmos DB, Azure Functions and Blazor
Go Serverless with Cosmos DB, Azure Functions and BlazorGo Serverless with Cosmos DB, Azure Functions and Blazor
Go Serverless with Cosmos DB, Azure Functions and Blazor
 
Introduction to Azure Functions
Introduction to Azure FunctionsIntroduction to Azure Functions
Introduction to Azure Functions
 
ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2
ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2
ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2
 
Elastic Search Meetup Special - Yann Cluchey, Cogenta
Elastic Search Meetup Special - Yann Cluchey, Cogenta Elastic Search Meetup Special - Yann Cluchey, Cogenta
Elastic Search Meetup Special - Yann Cluchey, Cogenta
 
Cnam cours azure cloud services
Cnam cours azure  cloud servicesCnam cours azure  cloud services
Cnam cours azure cloud services
 
Migrating My.T-Mobile.com to AWS (ENT214) | AWS re:Invent 2013
Migrating My.T-Mobile.com to AWS (ENT214) | AWS re:Invent 2013Migrating My.T-Mobile.com to AWS (ENT214) | AWS re:Invent 2013
Migrating My.T-Mobile.com to AWS (ENT214) | AWS re:Invent 2013
 
Gaming in the Cloud at Websummit Dublin
Gaming in the Cloud at Websummit DublinGaming in the Cloud at Websummit Dublin
Gaming in the Cloud at Websummit Dublin
 
Key Design Considerations Private and Hybrid Clouds - RightScale Compute 2013
Key Design Considerations Private and Hybrid Clouds - RightScale Compute 2013Key Design Considerations Private and Hybrid Clouds - RightScale Compute 2013
Key Design Considerations Private and Hybrid Clouds - RightScale Compute 2013
 

Similar to Cosmos DB and Azure Functions A serverless database processing.pptx

NoSQL Migration Technical Pitch Deck
NoSQL Migration Technical Pitch DeckNoSQL Migration Technical Pitch Deck
NoSQL Migration Technical Pitch Deck
Nicholas Vossburg
 
Azure Cosmos DB - Azure Austin Meetup
Azure Cosmos DB - Azure Austin MeetupAzure Cosmos DB - Azure Austin Meetup
Azure Cosmos DB - Azure Austin Meetup
Matias Quaranta
 
Cosmos DB Conf - Cosmos DB + Azure Functions .pptx
Cosmos DB Conf - Cosmos DB + Azure Functions .pptxCosmos DB Conf - Cosmos DB + Azure Functions .pptx
Cosmos DB Conf - Cosmos DB + Azure Functions .pptx
Luis Beltran
 
AWS Cloud Kata | Manila - Getting to Scale on AWS
AWS Cloud Kata | Manila - Getting to Scale on AWSAWS Cloud Kata | Manila - Getting to Scale on AWS
AWS Cloud Kata | Manila - Getting to Scale on AWSAmazon Web Services
 
Cosmos DB - Database for Serverless era
Cosmos DB - Database for Serverless eraCosmos DB - Database for Serverless era
Cosmos DB - Database for Serverless era
Michał Jankowski
 
Cloud Native Apps
Cloud Native AppsCloud Native Apps
Cloud Native Apps
David Chou
 
Amazon AWS vs Azure Cloud vs Kubernetes
Amazon AWS vs Azure Cloud vs KubernetesAmazon AWS vs Azure Cloud vs Kubernetes
Amazon AWS vs Azure Cloud vs Kubernetes
Stridely Solutions
 
Azure Cosmos DB - NET Conf AR 2017 - English
Azure Cosmos DB - NET Conf AR 2017 - EnglishAzure Cosmos DB - NET Conf AR 2017 - English
Azure Cosmos DB - NET Conf AR 2017 - English
Matias Quaranta
 
AWS Cloud Kata 2013 | Singapore - Getting to Scale on AWS
AWS Cloud Kata 2013 | Singapore - Getting to Scale on AWSAWS Cloud Kata 2013 | Singapore - Getting to Scale on AWS
AWS Cloud Kata 2013 | Singapore - Getting to Scale on AWS
Amazon Web Services
 
SAP on Amazon web services
SAP on Amazon web servicesSAP on Amazon web services
SAP on Amazon web services
cloudnonstop
 
AWS 201 - A Walk through the AWS Cloud: What's New with AWS
AWS 201 - A Walk through the AWS Cloud: What's New with AWSAWS 201 - A Walk through the AWS Cloud: What's New with AWS
AWS 201 - A Walk through the AWS Cloud: What's New with AWS
Amazon Web Services
 
Azure data platform overview
Azure data platform overviewAzure data platform overview
Azure data platform overview
Alessandro Melchiori
 
UCT AWS_IOT
UCT AWS_IOTUCT AWS_IOT
OSS DB on Azure
OSS DB on AzureOSS DB on Azure
OSS DB on Azure
rockplace
 
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
 
Azure from scratch part 3 By Girish Kalamati
Azure from scratch part 3 By Girish KalamatiAzure from scratch part 3 By Girish Kalamati
Azure from scratch part 3 By Girish Kalamati
Girish Kalamati
 
The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017
Amazon Web Services
 
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit DublinScaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Amazon Web Services
 
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit DublinScaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Ian Massingham
 
數據庫遷移到雲端的成功秘訣
數據庫遷移到雲端的成功秘訣數據庫遷移到雲端的成功秘訣
數據庫遷移到雲端的成功秘訣
Amazon Web Services
 

Similar to Cosmos DB and Azure Functions A serverless database processing.pptx (20)

NoSQL Migration Technical Pitch Deck
NoSQL Migration Technical Pitch DeckNoSQL Migration Technical Pitch Deck
NoSQL Migration Technical Pitch Deck
 
Azure Cosmos DB - Azure Austin Meetup
Azure Cosmos DB - Azure Austin MeetupAzure Cosmos DB - Azure Austin Meetup
Azure Cosmos DB - Azure Austin Meetup
 
Cosmos DB Conf - Cosmos DB + Azure Functions .pptx
Cosmos DB Conf - Cosmos DB + Azure Functions .pptxCosmos DB Conf - Cosmos DB + Azure Functions .pptx
Cosmos DB Conf - Cosmos DB + Azure Functions .pptx
 
AWS Cloud Kata | Manila - Getting to Scale on AWS
AWS Cloud Kata | Manila - Getting to Scale on AWSAWS Cloud Kata | Manila - Getting to Scale on AWS
AWS Cloud Kata | Manila - Getting to Scale on AWS
 
Cosmos DB - Database for Serverless era
Cosmos DB - Database for Serverless eraCosmos DB - Database for Serverless era
Cosmos DB - Database for Serverless era
 
Cloud Native Apps
Cloud Native AppsCloud Native Apps
Cloud Native Apps
 
Amazon AWS vs Azure Cloud vs Kubernetes
Amazon AWS vs Azure Cloud vs KubernetesAmazon AWS vs Azure Cloud vs Kubernetes
Amazon AWS vs Azure Cloud vs Kubernetes
 
Azure Cosmos DB - NET Conf AR 2017 - English
Azure Cosmos DB - NET Conf AR 2017 - EnglishAzure Cosmos DB - NET Conf AR 2017 - English
Azure Cosmos DB - NET Conf AR 2017 - English
 
AWS Cloud Kata 2013 | Singapore - Getting to Scale on AWS
AWS Cloud Kata 2013 | Singapore - Getting to Scale on AWSAWS Cloud Kata 2013 | Singapore - Getting to Scale on AWS
AWS Cloud Kata 2013 | Singapore - Getting to Scale on AWS
 
SAP on Amazon web services
SAP on Amazon web servicesSAP on Amazon web services
SAP on Amazon web services
 
AWS 201 - A Walk through the AWS Cloud: What's New with AWS
AWS 201 - A Walk through the AWS Cloud: What's New with AWSAWS 201 - A Walk through the AWS Cloud: What's New with AWS
AWS 201 - A Walk through the AWS Cloud: What's New with AWS
 
Azure data platform overview
Azure data platform overviewAzure data platform overview
Azure data platform overview
 
UCT AWS_IOT
UCT AWS_IOTUCT AWS_IOT
UCT AWS_IOT
 
OSS DB on Azure
OSS DB on AzureOSS DB on Azure
OSS DB on Azure
 
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
 
Azure from scratch part 3 By Girish Kalamati
Azure from scratch part 3 By Girish KalamatiAzure from scratch part 3 By Girish Kalamati
Azure from scratch part 3 By Girish Kalamati
 
The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017
 
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit DublinScaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit Dublin
 
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit DublinScaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit Dublin
 
數據庫遷移到雲端的成功秘訣
數據庫遷移到雲端的成功秘訣數據庫遷移到雲端的成功秘訣
數據庫遷移到雲端的成功秘訣
 

More from icebeam7

Sustainable AI con Azure Machine Learning.pptx
Sustainable AI con Azure Machine Learning.pptxSustainable AI con Azure Machine Learning.pptx
Sustainable AI con Azure Machine Learning.pptx
icebeam7
 
CIITEC Fundamentos de Deep Learning.pptx
CIITEC  Fundamentos de Deep Learning.pptxCIITEC  Fundamentos de Deep Learning.pptx
CIITEC Fundamentos de Deep Learning.pptx
icebeam7
 
GitHub Actions Monkeyconf 2021.pptx
GitHub Actions Monkeyconf 2021.pptxGitHub Actions Monkeyconf 2021.pptx
GitHub Actions Monkeyconf 2021.pptx
icebeam7
 
Dockerize your ML Models Data Science Summit.pptx
Dockerize your ML Models Data Science Summit.pptxDockerize your ML Models Data Science Summit.pptx
Dockerize your ML Models Data Science Summit.pptx
icebeam7
 
Comunidad AI Azure Cognitive Services Bring AI to your applications in 3 ste...
Comunidad AI  Azure Cognitive Services Bring AI to your applications in 3 ste...Comunidad AI  Azure Cognitive Services Bring AI to your applications in 3 ste...
Comunidad AI Azure Cognitive Services Bring AI to your applications in 3 ste...
icebeam7
 
FestiveTechCalendar2021 Drawing Xmas controls Xamarin.pptx
FestiveTechCalendar2021 Drawing Xmas controls Xamarin.pptxFestiveTechCalendar2021 Drawing Xmas controls Xamarin.pptx
FestiveTechCalendar2021 Drawing Xmas controls Xamarin.pptx
icebeam7
 
Keynote NET MAUI.pptx
Keynote NET MAUI.pptxKeynote NET MAUI.pptx
Keynote NET MAUI.pptx
icebeam7
 
Que hay en el Taller de Santa Ayudando a Santa con IA .pptx
Que hay en el Taller de Santa Ayudando a Santa con IA .pptxQue hay en el Taller de Santa Ayudando a Santa con IA .pptx
Que hay en el Taller de Santa Ayudando a Santa con IA .pptx
icebeam7
 
DTS Azure anomaly detector.pptx
DTS Azure anomaly detector.pptxDTS Azure anomaly detector.pptx
DTS Azure anomaly detector.pptx
icebeam7
 
Implementacion portable de modelos de Machine Learning con Docker.pptx
Implementacion portable de modelos de Machine Learning con Docker.pptxImplementacion portable de modelos de Machine Learning con Docker.pptx
Implementacion portable de modelos de Machine Learning con Docker.pptx
icebeam7
 
02 Global AI Bootcamp 2022 Sofia Voice biometry Recognizing speakers in our a...
02 Global AI Bootcamp 2022 Sofia Voice biometry Recognizing speakers in our a...02 Global AI Bootcamp 2022 Sofia Voice biometry Recognizing speakers in our a...
02 Global AI Bootcamp 2022 Sofia Voice biometry Recognizing speakers in our a...
icebeam7
 
01 GAIB Pune 2022 Session Rock Paper Scissors.pptx
01 GAIB Pune 2022 Session Rock Paper  Scissors.pptx01 GAIB Pune 2022 Session Rock Paper  Scissors.pptx
01 GAIB Pune 2022 Session Rock Paper Scissors.pptx
icebeam7
 
04 GlobalAI Speaker Latam Biometria de voz Reconocimiento por voz en nuestr...
04 GlobalAI Speaker Latam  Biometria de voz  Reconocimiento por voz en nuestr...04 GlobalAI Speaker Latam  Biometria de voz  Reconocimiento por voz en nuestr...
04 GlobalAI Speaker Latam Biometria de voz Reconocimiento por voz en nuestr...
icebeam7
 
Build Stuff 2021 Azure Video Indexer Advanced data extraction from video and ...
Build Stuff 2021 Azure Video Indexer Advanced data extraction from video and ...Build Stuff 2021 Azure Video Indexer Advanced data extraction from video and ...
Build Stuff 2021 Azure Video Indexer Advanced data extraction from video and ...
icebeam7
 
MVVM vs MVU en NET MAUI.pptx
MVVM vs MVU en NET MAUI.pptxMVVM vs MVU en NET MAUI.pptx
MVVM vs MVU en NET MAUI.pptx
icebeam7
 
Programa tu Pandemia 2 Azure Video Indexer.pptx
Programa tu Pandemia 2 Azure Video Indexer.pptxPrograma tu Pandemia 2 Azure Video Indexer.pptx
Programa tu Pandemia 2 Azure Video Indexer.pptx
icebeam7
 
Cumbre Virtual Juguemos Piedra Papel Tijeras con ML NET.pptx
Cumbre Virtual  Juguemos Piedra  Papel Tijeras con ML NET.pptxCumbre Virtual  Juguemos Piedra  Papel Tijeras con ML NET.pptx
Cumbre Virtual Juguemos Piedra Papel Tijeras con ML NET.pptx
icebeam7
 

More from icebeam7 (17)

Sustainable AI con Azure Machine Learning.pptx
Sustainable AI con Azure Machine Learning.pptxSustainable AI con Azure Machine Learning.pptx
Sustainable AI con Azure Machine Learning.pptx
 
CIITEC Fundamentos de Deep Learning.pptx
CIITEC  Fundamentos de Deep Learning.pptxCIITEC  Fundamentos de Deep Learning.pptx
CIITEC Fundamentos de Deep Learning.pptx
 
GitHub Actions Monkeyconf 2021.pptx
GitHub Actions Monkeyconf 2021.pptxGitHub Actions Monkeyconf 2021.pptx
GitHub Actions Monkeyconf 2021.pptx
 
Dockerize your ML Models Data Science Summit.pptx
Dockerize your ML Models Data Science Summit.pptxDockerize your ML Models Data Science Summit.pptx
Dockerize your ML Models Data Science Summit.pptx
 
Comunidad AI Azure Cognitive Services Bring AI to your applications in 3 ste...
Comunidad AI  Azure Cognitive Services Bring AI to your applications in 3 ste...Comunidad AI  Azure Cognitive Services Bring AI to your applications in 3 ste...
Comunidad AI Azure Cognitive Services Bring AI to your applications in 3 ste...
 
FestiveTechCalendar2021 Drawing Xmas controls Xamarin.pptx
FestiveTechCalendar2021 Drawing Xmas controls Xamarin.pptxFestiveTechCalendar2021 Drawing Xmas controls Xamarin.pptx
FestiveTechCalendar2021 Drawing Xmas controls Xamarin.pptx
 
Keynote NET MAUI.pptx
Keynote NET MAUI.pptxKeynote NET MAUI.pptx
Keynote NET MAUI.pptx
 
Que hay en el Taller de Santa Ayudando a Santa con IA .pptx
Que hay en el Taller de Santa Ayudando a Santa con IA .pptxQue hay en el Taller de Santa Ayudando a Santa con IA .pptx
Que hay en el Taller de Santa Ayudando a Santa con IA .pptx
 
DTS Azure anomaly detector.pptx
DTS Azure anomaly detector.pptxDTS Azure anomaly detector.pptx
DTS Azure anomaly detector.pptx
 
Implementacion portable de modelos de Machine Learning con Docker.pptx
Implementacion portable de modelos de Machine Learning con Docker.pptxImplementacion portable de modelos de Machine Learning con Docker.pptx
Implementacion portable de modelos de Machine Learning con Docker.pptx
 
02 Global AI Bootcamp 2022 Sofia Voice biometry Recognizing speakers in our a...
02 Global AI Bootcamp 2022 Sofia Voice biometry Recognizing speakers in our a...02 Global AI Bootcamp 2022 Sofia Voice biometry Recognizing speakers in our a...
02 Global AI Bootcamp 2022 Sofia Voice biometry Recognizing speakers in our a...
 
01 GAIB Pune 2022 Session Rock Paper Scissors.pptx
01 GAIB Pune 2022 Session Rock Paper  Scissors.pptx01 GAIB Pune 2022 Session Rock Paper  Scissors.pptx
01 GAIB Pune 2022 Session Rock Paper Scissors.pptx
 
04 GlobalAI Speaker Latam Biometria de voz Reconocimiento por voz en nuestr...
04 GlobalAI Speaker Latam  Biometria de voz  Reconocimiento por voz en nuestr...04 GlobalAI Speaker Latam  Biometria de voz  Reconocimiento por voz en nuestr...
04 GlobalAI Speaker Latam Biometria de voz Reconocimiento por voz en nuestr...
 
Build Stuff 2021 Azure Video Indexer Advanced data extraction from video and ...
Build Stuff 2021 Azure Video Indexer Advanced data extraction from video and ...Build Stuff 2021 Azure Video Indexer Advanced data extraction from video and ...
Build Stuff 2021 Azure Video Indexer Advanced data extraction from video and ...
 
MVVM vs MVU en NET MAUI.pptx
MVVM vs MVU en NET MAUI.pptxMVVM vs MVU en NET MAUI.pptx
MVVM vs MVU en NET MAUI.pptx
 
Programa tu Pandemia 2 Azure Video Indexer.pptx
Programa tu Pandemia 2 Azure Video Indexer.pptxPrograma tu Pandemia 2 Azure Video Indexer.pptx
Programa tu Pandemia 2 Azure Video Indexer.pptx
 
Cumbre Virtual Juguemos Piedra Papel Tijeras con ML NET.pptx
Cumbre Virtual  Juguemos Piedra  Papel Tijeras con ML NET.pptxCumbre Virtual  Juguemos Piedra  Papel Tijeras con ML NET.pptx
Cumbre Virtual Juguemos Piedra Papel Tijeras con ML NET.pptx
 

Recently uploaded

Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
Jen Stirrup
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 

Recently uploaded (20)

Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 

Cosmos DB and Azure Functions A serverless database processing.pptx

  • 1. Cosmos DB + Azure Functions: A serverless database processing Luis Beltrán
  • 3. Agenda • Azure Cosmos DB • Azure Functions • Integration • Demo • Call to Action
  • 4. Azure Cosmos DB A globally-accessible NoSQL database service for modern application development
  • 5. 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 A globally distributed, massively scalable, multi-model database service Cosmos DB’s API for MongoDB Azure Cosmos DB
  • 6. Elastically Scale Storage and Throughput Independently and elastically scale storage and throughput across regions – even during unpredictable traffic bursts – with a database that adapts to your app’s needs. • Elastically scale throughput from 10 to 100s of millions of requests/sec across multiple regions • Scale throughput automatically using autopilot mode • Only pay for the throughput and storage you need
  • 7. Guaranteed Low Latency Provide users around the world with fast access to data • Serve single digit millisecond reads and writes • Guarantee that reads and writes of documents 1 KB or smaller will be < 10 ms at the 99% percentile
  • 8. Turnkey Global Distribution Put your data where your users are in minutes Automatically replicate all your data around the world, and across more regions than Amazon and Google combined. • Available in all Azure regions • Manual and automatic failover • Automatic & synchronous multi-region replication • Configure multiple write regions to further reduce latency and increase availability
  • 9. Five Well-Defined Consistency Models Choose the best consistency model for your app • Offers five consistency models • Provides control over performance-consistency tradeoffs, backed by comprehensive SLAs. • An intuitive programming model offering low latency and high availability for your planet-scale app.
  • 10. Multiple Data Models and APIs Use the model that fits your requirements, and the apis, tools, and frameworks you prefer • Cosmos DB offers a multitude of APIs to access and query data including, SQL, various popular OSS APIs, and native support for NoSQL workloads. • Use key-value, columnar, graph, and document data • Data is automatically indexed, with no schema or secondary indexes required • Blazing fast queries with no lag
  • 11. Scenario I Optimization of IoT and Big Data operations in subsidiaries: • Remote well monitoring • Collecting performance data • Profitable • Device management • Data transmission • Analysis automation
  • 12. Scenario II Delivering high-quality, scalable experiences: • A database that seamlessly responds to massive performance demands • Low latency multiplayer game • Instant scalability • Uninterrupted user experience globally
  • 13. Azure Functions Process events with serverless code
  • 14. PaaS IaaS On-premises Serverless How do I architect my app? Serverless, the cloud native platform The evolution of application platforms
  • 15. What is Serverless? Event-driven / instant-scale Micro-billing Abstraction of servers Manage apps, not servers Faster time to market Reduced DevOps
  • 16. Serverless application platform components Development Platform
  • 17. Azure Functions Code Data + Events Azure Functions
  • 18. Your code runs when a (previously-specified) event occurs Triggers Blob Storage Cosmos DB Event Hub HTTP Queues Service Bus Timer Webhook Photo taken and sent Upload it to blob storage Produce scalated images Bindings File Table Excel OneDrive Email Mobile app Notification …
  • 19. Use Bindings in Your Code public static void Run(byte[] image, string filename, Stream outputBlob, TraceWriter log) { log.Info($"Processing image: {filename}"); var imageBuilder = ImageResizer.ImageBuilder.Current; imageBuilder.Build( image, outputBlob, new ResizeSettings(640, 400, FitMode.Max, null), false); } { "bindings": [ { "name": "image", "type": "blobTrigger", "direction": "in", "path": "card-input/{filename}.jpg", "connection": "AzureWebJobsStorage" }, { "type": "blob", "name": "outputBlob", "path": "card-output/{filename}.jpg", "connection": "AzureWebJobsStorage", "direction": "out" } ] }
  • 20. Integration Azure Functions + Azure Cosmos DB
  • 21. Serverless database computing using Azure Cosmos DB and Azure Functions • With the native integration between Azure Cosmos DB and Azure Functions, you can create database triggers, input bindings, and output bindings directly from your Azure Cosmos DB account. • Using Azure Functions and Azure Cosmos DB, you can create and deploy event-driven serverless apps with low-latency access to rich data for a global user base. • Azure Cosmos DB and Azure Functions enable you to integrate your databases and serverless apps in three ways.
  • 22. Cosmos DB Trigger Create an event-driven Azure Functions trigger for Cosmos DB. This trigger relies on change feed streams to monitor your Azure Cosmos container for changes. When any changes are made to a container, the change feed stream is sent to the trigger, which invokes the Azure Function.
  • 23. Cosmos DB Input Binding Alternatively, you can bind an Azure Function to an Azure Cosmos container using an input binding. Input bindings read data from a container when a function executes.
  • 24. Cosmos DB Output Binding The third option is to bind a function to an Azure Cosmos container using an output binding. Output bindings write data to a container when a function completes.
  • 25. Demo Creating a serverless Cosmos DB API
  • 31. Serverless database computing con Azure Cosmos DB y Azure Functions https://docs.microsoft.com/en-us/azure/cosmos-db/serverless- computing-database Azure Cosmos DB and Azure Functions integration https://youtu.be/L88quzuyjDY
  • 32. Q & A
  • 33. Thank you for your attention Luis Beltrán Tomás Bata University in Zlín Tecnológico Nacional de México en Celaya About Me: https://about.me/luis-beltran

Editor's Notes

  1. Azure Cosmos DB is a fully managed NoSQL database for modern app development. Azure Cosmos DB offers the first globally distributed, multi-model database service for building planet scale apps. It’s been powering Microsoft’s internet-scale services for years, and now it’s ready to launch yours. You can add Azure locations to your database anywhere across the world, at any time, with a single click. Cosmos DB will seamlessly replicate your data and make it highly available.   Cosmos DB allows you to scale throughput and storage elastically, and globally! You only pay for the throughput and storage you need – anywhere in the world, at any time. Single-digit millisecond response times, and automatic and instant scalability, guarantee speed at any scale. Business continuity is assured with SLA-backed availability and enterprise-grade security. App development is faster and more productive thanks to turnkey multi region data distribution anywhere in the world, open source APIs and SDKs for popular languages. As a fully managed service, Azure Cosmos DB takes database administration off your hands with automatic management, updates and patching. It also handles capacity management with cost-effective serverless and automatic scaling options that respond to application needs to match capacity with demand.
  2. Particularly useful for: Small storage – large throughput (e.g. notification broadcast/poll) Large storage – small throughput (e.g. classic data/log store) Many customers (for example, online retailers) need to scale throughput up & down during different times of the year. Retailers, for example, have much higher numbers of read/writes in November and December since most shopping occurs during the holiday season. Azure Cosmos DB’s ability to easily scale up & down
  3. Cosmos DB’s is one of few databases to have a financially back latency. Every database likes to claim that they are the fastest- Azure Cosmos DB goes a step further and puts an SLA on P99 latency. This reliability low latency makes Azure Cosmos DB a great fit for any applications with real-time requirements. In many applications, a few extra milliseconds of latency can have a significant impact on customer satisfaction.
  4. Tunable Consistency -> Single digit latency Instead of forcing you to choose between eventual and strong consistency, Cosmos DB gives you many additional useful options. 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
  5. Multi – Model -> Elastic Scale out For any new app you are building on Azure Cosmos DB, we recommend the SQL API. We have created Cassandra, API for Mongo DB, and Tables API for apps that are being migrated from these existing NoSQL databases to Azure Cosmos DB. This allows customers to experience the low latency and global distribution core features of Azure Cosmos DB without needing to alter their data model or application code.
  6. On-premises What media should I use to keep backup? What is the right size of servers for my business needs? How do I deploy new code to my server? Whay happens in case of server hardware failure? Who monitors my app? What about server security? Which OS do I need? Fortunately virtualization came to the rescue. One great thing about the cloud evolution is that each phase leads to less waste. Infrastructure as a Service leverages hardware in a way that you can stop worrying about the hardware and focus on the operating system and your virtual machines. You can get better utilization of your resources and it’s faster and easier to provision new instances. IaaS addresses many of the questions we dealt with on-premises, and more importantly paves the way to the cloud. Platform-as-a-Service is the next evolution: host a runtime, so we stop worrying about hardware and operating system and even dependencies and just focus on our project. We’re no longer in the business of constantly patching an OS or even making sure dependencies are installed to run a web server or host a process. PaaS simplifies the process even more and provides a mature platform for code that must run at scale because you can still size (scale up) and specify instances (scale out) to manage your workloads. Serverless takes us to the ultimate cloud native experience: we simply focus on code. It doesn’t mean there is no server, because we still need to run on infrastructure, but the infrastructure is further abstracted so there is less server in our scope of responsibility and more code. We focus on what is unique for our business and spend more time on innovation, less time on answering the myriad questions that exist with the previous phases. Serverless is cloud native. But what does that really mean?
  7. Write your code in C#, nodeJS, Python, F#, PHP, PowerShell, Bash or Batch You can extend your functionality by using NuGet or Node PM You can even include DLLs to be called from your code or EXEs and execute them
  8. Other scenarios Devices feed data such as temperature, into Stream Analytics, then AF or Logic Apps cleans, processes and transforms this raw data into structured data that is stored into a database. Create a Timer Trigger function in order to schedule a function that runs at a specified frequency, for example every 15 minutes or exactly at 9 am in Europe every Monday to connect to a database and clean it, for instance to remove non-valid data