SlideShare a Scribd company logo
How  to  deploy  Machine  Learning  
models  in  the  Cloud
Alex  Casalboni
PYCON  SETTE  
@  Firenze
clda.co/pycon7-alex
About  Me
PYCON  SETTE  @  FIRENZE
@alex_casalboni
clda.co/pycon7-alex
Bachelor  in  Computer  Science
Master  in  Sound  &  Music  Engineering
6+  years  of  Web  Development
3+  years  of  Python
Have  you  ever  met  a  Data  Scien@st?
PYCON  SETTE  @  FIRENZE
Bob
Bob  leads  a  skilled  team  of  data  scienCsts
Bob  has  built  a  great  ML  model
Bob  loves  Python
Bob  likes  user-­‐centered  ML
clda.co/pycon7-alex
How  did  Bob  build  his  model  in  Python?
PYCON  SETTE  @  FIRENZE
clda.co/pycon7-code
clda.co/pycon7-alex
Bob
PYCON  SETTE  @  FIRENZE
GPU  availability
distributed  compuCng
infrastructure-­‐aware  code
1.  Bob  needs  Elas@city
clda.co/pycon7-alex
And  why  is  deploying  a  challenge?
Bob
PYCON  SETTE  @  FIRENZE
MulC-­‐model  architecture
A/B  tesCng  &  versioning
RESTful  API
2.  Bob  needs  plenty  of  Features
Auth  layer
clda.co/pycon7-alex
And  why  is  deploying  a  challenge?
Bob
PYCON  SETTE  @  FIRENZE
infrastructure  maintenance
conCnuous  delivery  &  deployments
automaCon,  performance  &  monitoring
3.  Data  Scien@sts  ain’t  DevOps
≠
clda.co/pycon7-alex
And  why  is  deploying  a  challenge?
Data  
ScienCst
DevOps
PYCON  SETTE  @  FIRENZE
model  design,  training  &  tesCng
code  reviews    &  debugging
data  exploraCon
4.  DevOps  ain’t  Data  Scien@sts
≠
clda.co/pycon7-alex
And  why  is  deploying  a  challenge?
Data  
ScienCst
DevOps
Deployment  Strategies
PYCON  SETTE  @  FIRENZE
1.  Web-­‐app  controller
clda.co/pycon7-alex
how  will  Bob  update  his  model(s)?
same  website  auth  layer?
shared  (limited)  uWSGI  processes?
It’s  disarmingly  simple,  but…
Bob
Deployment  Strategies
PYCON  SETTE  @  FIRENZE
2.  Fleet  of  servers
clda.co/pycon7-alex
same  problems  as  before
Bob  has  many  more  machines  to  maintain
sCll  no  elasCcity  (over-­‐provisioning)
Bigger  capacity  and  no  code  changes,  but…
Bob Bob2 Bob3
Load  Balancing
Deployment  Strategies
PYCON  SETTE  @  FIRENZE
3.  Auto  Scaling
clda.co/pycon7-alex
<Bob>
sCll  shared  resources?  containers?
even  bigger  lack  of  ownership
what  about  caching,  versioning  and  auth?
Bob  achieved  elasCcity  and  availability  ,  but…
AWS  ELB  +  Auto  Scaling  
(or  maybe  ElasCc  Beanstalk?)
Deployment  Strategies
PYCON  SETTE  @  FIRENZE
4.  Serverless
clda.co/pycon7-alex
+
Amazon  API  
Gateway
AWS  
Lambda
Happy  
Bob
Infinite  scalability,  global  CDN  and  caching
Transparent  elasCcity  (and  PAYG)
RESTful  &  auth  layer  +  versioning  (for  free!)
Bob  doesn’t  need  to  be  a  DevOps  anymore!
The  Serverless  Cloud
PYCON  SETTE  @  FIRENZEclda.co/pycon7-alex
There is always a server somewhere,

you just don't have to worry about it :)
Does  Bob’s  code  change  a  lot?
PYCON  SETTE  @  FIRENZEclda.co/pycon7-alex
Basically,  no  change!
Bob
How  does  Bob  keep  the  model  updated?
PYCON  SETTE  @  FIRENZEclda.co/pycon7-alex
Bob
Hint:  use  gzip!
PYCON  SETTE  @  FIRENZE
clda.co/pycon7-lambda
clda.co/pycon7-alex
Serverless  Cloud  Domina@on
PYCON  SETTE  @  FIRENZE
Amazon  Web  Services  (Lambda)
Microso`  Azure  (FuncCons)
Google  Cloud  Plaborm  (FuncCons)
IBM  Bluemix  (OpenWhisk)
hook.io
Cloud  PlaSorms Hybrid  &  Microservices
stackhut.com
webtask.io
iron.io
clda.co/pycon7-alex
Thank  you  :)
jobs.cloudacademy.com
P.S.  we  are  hiring!

More Related Content

What's hot

Smokey and the Multi-Armed Bandit Featuring BERT Reynolds Updated
Smokey and the Multi-Armed Bandit Featuring BERT Reynolds UpdatedSmokey and the Multi-Armed Bandit Featuring BERT Reynolds Updated
Smokey and the Multi-Armed Bandit Featuring BERT Reynolds Updated
Chris Fregly
 
20110504 AWS 台北開發者聚會
20110504 AWS 台北開發者聚會20110504 AWS 台北開發者聚會
20110504 AWS 台北開發者聚會
Jui-Nan Lin
 
Automating machine learning lifecycle with kubeflow
Automating machine learning lifecycle with kubeflowAutomating machine learning lifecycle with kubeflow
Automating machine learning lifecycle with kubeflow
Stepan Pushkarev
 
Apache OpenWhisk
Apache OpenWhiskApache OpenWhisk
Apache OpenWhisk
Simon Sasaki
 
TensorFlow London 14: Ben Hall 'Machine Learning Workloads with Kubernetes an...
TensorFlow London 14: Ben Hall 'Machine Learning Workloads with Kubernetes an...TensorFlow London 14: Ben Hall 'Machine Learning Workloads with Kubernetes an...
TensorFlow London 14: Ben Hall 'Machine Learning Workloads with Kubernetes an...
Seldon
 
“Houston, we have a model...” Introduction to MLOps
“Houston, we have a model...” Introduction to MLOps“Houston, we have a model...” Introduction to MLOps
“Houston, we have a model...” Introduction to MLOps
Rui Quintino
 
Bodywork - GitOps for Machine Learning
Bodywork - GitOps for Machine LearningBodywork - GitOps for Machine Learning
Bodywork - GitOps for Machine Learning
Alex Ioannides
 
Rescale New Feature: Bring Your Own VPC
Rescale New Feature: Bring Your Own VPCRescale New Feature: Bring Your Own VPC
Rescale New Feature: Bring Your Own VPC
Takahisa Shiratori
 
Neptue Graph Database - 0 to Production
Neptue Graph Database - 0 to ProductionNeptue Graph Database - 0 to Production
Neptue Graph Database - 0 to Production
israelio
 
Educating your app – adding ML edge to your apps - Maoz Tamir
Educating your app – adding ML edge to your apps - Maoz TamirEducating your app – adding ML edge to your apps - Maoz Tamir
Educating your app – adding ML edge to your apps - Maoz Tamir
DroidConTLV
 
SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES
 SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES
SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES
VMware Tanzu
 
OpenSooq Image Recognition on AWS - AWS ML Lab
OpenSooq Image Recognition on AWS - AWS ML LabOpenSooq Image Recognition on AWS - AWS ML Lab
OpenSooq Image Recognition on AWS - AWS ML Lab
Ramzi Alqrainy
 
Flink Forward San Francisco 2018 keynote: Anand Iyer - "Apache Flink + Apach...
Flink Forward San Francisco 2018 keynote:  Anand Iyer - "Apache Flink + Apach...Flink Forward San Francisco 2018 keynote:  Anand Iyer - "Apache Flink + Apach...
Flink Forward San Francisco 2018 keynote: Anand Iyer - "Apache Flink + Apach...
Flink Forward
 
Tracing Java Applications on Azure
Tracing Java Applications on AzureTracing Java Applications on Azure
Tracing Java Applications on Azure
CodeOps Technologies LLP
 
A Lap around ASP.NET 5 - VConf
A Lap around ASP.NET 5 - VConfA Lap around ASP.NET 5 - VConf
A Lap around ASP.NET 5 - VConf
Sam Basu
 
PipelineAI Real-Time Machine Learning - Global Artificial Intelligence Confer...
PipelineAI Real-Time Machine Learning - Global Artificial Intelligence Confer...PipelineAI Real-Time Machine Learning - Global Artificial Intelligence Confer...
PipelineAI Real-Time Machine Learning - Global Artificial Intelligence Confer...
Chris Fregly
 
Introducción al JAMStack - JS Ourense
Introducción al JAMStack - JS OurenseIntroducción al JAMStack - JS Ourense
Introducción al JAMStack - JS Ourense
Carlos Azaustre
 
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
AWS User Group - Thailand
 
From Development to Production
From Development to ProductionFrom Development to Production
From Development to Production
Amazon Web Services
 
Whizlabs webinar - Deploying Portfolio Site with AWS Serverless
Whizlabs webinar - Deploying Portfolio Site with AWS ServerlessWhizlabs webinar - Deploying Portfolio Site with AWS Serverless
Whizlabs webinar - Deploying Portfolio Site with AWS Serverless
Dhaval Nagar
 

What's hot (20)

Smokey and the Multi-Armed Bandit Featuring BERT Reynolds Updated
Smokey and the Multi-Armed Bandit Featuring BERT Reynolds UpdatedSmokey and the Multi-Armed Bandit Featuring BERT Reynolds Updated
Smokey and the Multi-Armed Bandit Featuring BERT Reynolds Updated
 
20110504 AWS 台北開發者聚會
20110504 AWS 台北開發者聚會20110504 AWS 台北開發者聚會
20110504 AWS 台北開發者聚會
 
Automating machine learning lifecycle with kubeflow
Automating machine learning lifecycle with kubeflowAutomating machine learning lifecycle with kubeflow
Automating machine learning lifecycle with kubeflow
 
Apache OpenWhisk
Apache OpenWhiskApache OpenWhisk
Apache OpenWhisk
 
TensorFlow London 14: Ben Hall 'Machine Learning Workloads with Kubernetes an...
TensorFlow London 14: Ben Hall 'Machine Learning Workloads with Kubernetes an...TensorFlow London 14: Ben Hall 'Machine Learning Workloads with Kubernetes an...
TensorFlow London 14: Ben Hall 'Machine Learning Workloads with Kubernetes an...
 
“Houston, we have a model...” Introduction to MLOps
“Houston, we have a model...” Introduction to MLOps“Houston, we have a model...” Introduction to MLOps
“Houston, we have a model...” Introduction to MLOps
 
Bodywork - GitOps for Machine Learning
Bodywork - GitOps for Machine LearningBodywork - GitOps for Machine Learning
Bodywork - GitOps for Machine Learning
 
Rescale New Feature: Bring Your Own VPC
Rescale New Feature: Bring Your Own VPCRescale New Feature: Bring Your Own VPC
Rescale New Feature: Bring Your Own VPC
 
Neptue Graph Database - 0 to Production
Neptue Graph Database - 0 to ProductionNeptue Graph Database - 0 to Production
Neptue Graph Database - 0 to Production
 
Educating your app – adding ML edge to your apps - Maoz Tamir
Educating your app – adding ML edge to your apps - Maoz TamirEducating your app – adding ML edge to your apps - Maoz Tamir
Educating your app – adding ML edge to your apps - Maoz Tamir
 
SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES
 SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES
SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES
 
OpenSooq Image Recognition on AWS - AWS ML Lab
OpenSooq Image Recognition on AWS - AWS ML LabOpenSooq Image Recognition on AWS - AWS ML Lab
OpenSooq Image Recognition on AWS - AWS ML Lab
 
Flink Forward San Francisco 2018 keynote: Anand Iyer - "Apache Flink + Apach...
Flink Forward San Francisco 2018 keynote:  Anand Iyer - "Apache Flink + Apach...Flink Forward San Francisco 2018 keynote:  Anand Iyer - "Apache Flink + Apach...
Flink Forward San Francisco 2018 keynote: Anand Iyer - "Apache Flink + Apach...
 
Tracing Java Applications on Azure
Tracing Java Applications on AzureTracing Java Applications on Azure
Tracing Java Applications on Azure
 
A Lap around ASP.NET 5 - VConf
A Lap around ASP.NET 5 - VConfA Lap around ASP.NET 5 - VConf
A Lap around ASP.NET 5 - VConf
 
PipelineAI Real-Time Machine Learning - Global Artificial Intelligence Confer...
PipelineAI Real-Time Machine Learning - Global Artificial Intelligence Confer...PipelineAI Real-Time Machine Learning - Global Artificial Intelligence Confer...
PipelineAI Real-Time Machine Learning - Global Artificial Intelligence Confer...
 
Introducción al JAMStack - JS Ourense
Introducción al JAMStack - JS OurenseIntroducción al JAMStack - JS Ourense
Introducción al JAMStack - JS Ourense
 
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
 
From Development to Production
From Development to ProductionFrom Development to Production
From Development to Production
 
Whizlabs webinar - Deploying Portfolio Site with AWS Serverless
Whizlabs webinar - Deploying Portfolio Site with AWS ServerlessWhizlabs webinar - Deploying Portfolio Site with AWS Serverless
Whizlabs webinar - Deploying Portfolio Site with AWS Serverless
 

Similar to How to deploy machine learning models in the Cloud

AWS User Group BiH @ Mostar
AWS User Group BiH @ MostarAWS User Group BiH @ Mostar
AWS User Group BiH @ Mostar
Alex Casalboni
 
10/29 Austin Ansible MeetUp - AnsibleFest Talk & Extending Ansible
10/29 Austin Ansible MeetUp - AnsibleFest Talk & Extending Ansible10/29 Austin Ansible MeetUp - AnsibleFest Talk & Extending Ansible
10/29 Austin Ansible MeetUp - AnsibleFest Talk & Extending Ansible
tylerturk
 
Azure Kubernetes Service - benefits and challenges
Azure Kubernetes Service - benefits and challengesAzure Kubernetes Service - benefits and challenges
Azure Kubernetes Service - benefits and challenges
Wojciech Barczyński
 
AnsibleFest London 2016 - managing your cisco datacenter network with ansible
AnsibleFest London 2016 - managing your cisco datacenter network with ansibleAnsibleFest London 2016 - managing your cisco datacenter network with ansible
AnsibleFest London 2016 - managing your cisco datacenter network with ansible
fmaccioni
 
Managing Your Cisco Datacenter Network with Ansible
Managing Your Cisco Datacenter Network with AnsibleManaging Your Cisco Datacenter Network with Ansible
Managing Your Cisco Datacenter Network with Ansible
fmaccioni
 
Spryker meetup-distribute-your-spryker-deployment-with-docker-and-kubernetes
Spryker meetup-distribute-your-spryker-deployment-with-docker-and-kubernetesSpryker meetup-distribute-your-spryker-deployment-with-docker-and-kubernetes
Spryker meetup-distribute-your-spryker-deployment-with-docker-and-kubernetes
Bernd Alter
 
Hybrid integrationwithsap (Glenn Colpaert @ Integration Monday)
Hybrid integrationwithsap (Glenn Colpaert @ Integration Monday)Hybrid integrationwithsap (Glenn Colpaert @ Integration Monday)
Hybrid integrationwithsap (Glenn Colpaert @ Integration Monday)
Codit
 
DevOps Engineering
DevOps EngineeringDevOps Engineering
DevOps Engineering
Diego Pacheco
 
Data Engineering with Protobuf
Data Engineering with ProtobufData Engineering with Protobuf
Data Engineering with Protobuf
Thiago Baldim
 
Effective Platform Building with Kubernetes. Is K8S new Linux?
Effective Platform Building with Kubernetes. Is K8S new Linux?Effective Platform Building with Kubernetes. Is K8S new Linux?
Effective Platform Building with Kubernetes. Is K8S new Linux?
Wojciech Barczyński
 
Micro services may not be the best idea
Micro services may not be the best ideaMicro services may not be the best idea
Micro services may not be the best idea
Samuel ROZE
 
Raspberry pi: Conceptos básicos de la arquitectura de la computadora raspberr...
Raspberry pi: Conceptos básicos de la arquitectura de la computadora raspberr...Raspberry pi: Conceptos básicos de la arquitectura de la computadora raspberr...
Raspberry pi: Conceptos básicos de la arquitectura de la computadora raspberr...
SANTIAGO PABLO ALBERTO
 
Continuous Delivery and Zero Downtime: What your architecture needs to succeed
Continuous Delivery and Zero Downtime: What your architecture needs to succeedContinuous Delivery and Zero Downtime: What your architecture needs to succeed
Continuous Delivery and Zero Downtime: What your architecture needs to succeed
Axel Fontaine
 
Raspberry pi course syllabus
Raspberry pi course syllabusRaspberry pi course syllabus
Raspberry pi course syllabus
Softroniics india
 
Beginner's guide to net devops with cisco devnet and ansible
Beginner's guide to net devops with cisco devnet and ansibleBeginner's guide to net devops with cisco devnet and ansible
Beginner's guide to net devops with cisco devnet and ansible
cong tuan
 
Biscuit, the cryptotoken you can share safely with your ap is
Biscuit, the cryptotoken you can share safely with your ap isBiscuit, the cryptotoken you can share safely with your ap is
Biscuit, the cryptotoken you can share safely with your ap is
Quentin Adam
 
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP ProtocolSerial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
Sanjay Kumar
 
Whats New in IBM Integration Bus Interconnect 2017
Whats New in IBM Integration Bus Interconnect 2017Whats New in IBM Integration Bus Interconnect 2017
Whats New in IBM Integration Bus Interconnect 2017
bthomps1979
 
Matlab Projects USA
Matlab Projects USAMatlab Projects USA
Matlab Projects USA
Phdtopiccom
 
Your Goat Antifragiled My Snowflake!: Demystifying DevOps Jargon - ChefConf 2015
Your Goat Antifragiled My Snowflake!: Demystifying DevOps Jargon - ChefConf 2015Your Goat Antifragiled My Snowflake!: Demystifying DevOps Jargon - ChefConf 2015
Your Goat Antifragiled My Snowflake!: Demystifying DevOps Jargon - ChefConf 2015
Chef
 

Similar to How to deploy machine learning models in the Cloud (20)

AWS User Group BiH @ Mostar
AWS User Group BiH @ MostarAWS User Group BiH @ Mostar
AWS User Group BiH @ Mostar
 
10/29 Austin Ansible MeetUp - AnsibleFest Talk & Extending Ansible
10/29 Austin Ansible MeetUp - AnsibleFest Talk & Extending Ansible10/29 Austin Ansible MeetUp - AnsibleFest Talk & Extending Ansible
10/29 Austin Ansible MeetUp - AnsibleFest Talk & Extending Ansible
 
Azure Kubernetes Service - benefits and challenges
Azure Kubernetes Service - benefits and challengesAzure Kubernetes Service - benefits and challenges
Azure Kubernetes Service - benefits and challenges
 
AnsibleFest London 2016 - managing your cisco datacenter network with ansible
AnsibleFest London 2016 - managing your cisco datacenter network with ansibleAnsibleFest London 2016 - managing your cisco datacenter network with ansible
AnsibleFest London 2016 - managing your cisco datacenter network with ansible
 
Managing Your Cisco Datacenter Network with Ansible
Managing Your Cisco Datacenter Network with AnsibleManaging Your Cisco Datacenter Network with Ansible
Managing Your Cisco Datacenter Network with Ansible
 
Spryker meetup-distribute-your-spryker-deployment-with-docker-and-kubernetes
Spryker meetup-distribute-your-spryker-deployment-with-docker-and-kubernetesSpryker meetup-distribute-your-spryker-deployment-with-docker-and-kubernetes
Spryker meetup-distribute-your-spryker-deployment-with-docker-and-kubernetes
 
Hybrid integrationwithsap (Glenn Colpaert @ Integration Monday)
Hybrid integrationwithsap (Glenn Colpaert @ Integration Monday)Hybrid integrationwithsap (Glenn Colpaert @ Integration Monday)
Hybrid integrationwithsap (Glenn Colpaert @ Integration Monday)
 
DevOps Engineering
DevOps EngineeringDevOps Engineering
DevOps Engineering
 
Data Engineering with Protobuf
Data Engineering with ProtobufData Engineering with Protobuf
Data Engineering with Protobuf
 
Effective Platform Building with Kubernetes. Is K8S new Linux?
Effective Platform Building with Kubernetes. Is K8S new Linux?Effective Platform Building with Kubernetes. Is K8S new Linux?
Effective Platform Building with Kubernetes. Is K8S new Linux?
 
Micro services may not be the best idea
Micro services may not be the best ideaMicro services may not be the best idea
Micro services may not be the best idea
 
Raspberry pi: Conceptos básicos de la arquitectura de la computadora raspberr...
Raspberry pi: Conceptos básicos de la arquitectura de la computadora raspberr...Raspberry pi: Conceptos básicos de la arquitectura de la computadora raspberr...
Raspberry pi: Conceptos básicos de la arquitectura de la computadora raspberr...
 
Continuous Delivery and Zero Downtime: What your architecture needs to succeed
Continuous Delivery and Zero Downtime: What your architecture needs to succeedContinuous Delivery and Zero Downtime: What your architecture needs to succeed
Continuous Delivery and Zero Downtime: What your architecture needs to succeed
 
Raspberry pi course syllabus
Raspberry pi course syllabusRaspberry pi course syllabus
Raspberry pi course syllabus
 
Beginner's guide to net devops with cisco devnet and ansible
Beginner's guide to net devops with cisco devnet and ansibleBeginner's guide to net devops with cisco devnet and ansible
Beginner's guide to net devops with cisco devnet and ansible
 
Biscuit, the cryptotoken you can share safely with your ap is
Biscuit, the cryptotoken you can share safely with your ap isBiscuit, the cryptotoken you can share safely with your ap is
Biscuit, the cryptotoken you can share safely with your ap is
 
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP ProtocolSerial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
 
Whats New in IBM Integration Bus Interconnect 2017
Whats New in IBM Integration Bus Interconnect 2017Whats New in IBM Integration Bus Interconnect 2017
Whats New in IBM Integration Bus Interconnect 2017
 
Matlab Projects USA
Matlab Projects USAMatlab Projects USA
Matlab Projects USA
 
Your Goat Antifragiled My Snowflake!: Demystifying DevOps Jargon - ChefConf 2015
Your Goat Antifragiled My Snowflake!: Demystifying DevOps Jargon - ChefConf 2015Your Goat Antifragiled My Snowflake!: Demystifying DevOps Jargon - ChefConf 2015
Your Goat Antifragiled My Snowflake!: Demystifying DevOps Jargon - ChefConf 2015
 

More from Alex Casalboni

Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)
Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)
Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)
Alex Casalboni
 
Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)
Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)
Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)
Alex Casalboni
 
Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8
Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8
Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8
Alex Casalboni
 
Serverless London - Lambda@Edge (Serverless & Originless on AWS)
Serverless London - Lambda@Edge (Serverless & Originless on AWS)Serverless London - Lambda@Edge (Serverless & Originless on AWS)
Serverless London - Lambda@Edge (Serverless & Originless on AWS)
Alex Casalboni
 
Serverless Italy - Lambda@Edge (Preview)
Serverless Italy - Lambda@Edge (Preview)Serverless Italy - Lambda@Edge (Preview)
Serverless Italy - Lambda@Edge (Preview)
Alex Casalboni
 
"On-premises" FaaS on Kubernetes
"On-premises" FaaS on Kubernetes"On-premises" FaaS on Kubernetes
"On-premises" FaaS on Kubernetes
Alex Casalboni
 
Amazon Rekognition - Image Analysis Overview
Amazon Rekognition - Image Analysis OverviewAmazon Rekognition - Image Analysis Overview
Amazon Rekognition - Image Analysis Overview
Alex Casalboni
 
LAI - AWS IoT Workshop
LAI - AWS IoT WorkshopLAI - AWS IoT Workshop
LAI - AWS IoT Workshop
Alex Casalboni
 
Introduction to the Serverless paradigm
Introduction to the Serverless paradigmIntroduction to the Serverless paradigm
Introduction to the Serverless paradigm
Alex Casalboni
 
Cloud Academy's AWS Hands on-labs
Cloud Academy's AWS Hands on-labsCloud Academy's AWS Hands on-labs
Cloud Academy's AWS Hands on-labs
Alex Casalboni
 

More from Alex Casalboni (10)

Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)
Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)
Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)
 
Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)
Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)
Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)
 
Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8
Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8
Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8
 
Serverless London - Lambda@Edge (Serverless & Originless on AWS)
Serverless London - Lambda@Edge (Serverless & Originless on AWS)Serverless London - Lambda@Edge (Serverless & Originless on AWS)
Serverless London - Lambda@Edge (Serverless & Originless on AWS)
 
Serverless Italy - Lambda@Edge (Preview)
Serverless Italy - Lambda@Edge (Preview)Serverless Italy - Lambda@Edge (Preview)
Serverless Italy - Lambda@Edge (Preview)
 
"On-premises" FaaS on Kubernetes
"On-premises" FaaS on Kubernetes"On-premises" FaaS on Kubernetes
"On-premises" FaaS on Kubernetes
 
Amazon Rekognition - Image Analysis Overview
Amazon Rekognition - Image Analysis OverviewAmazon Rekognition - Image Analysis Overview
Amazon Rekognition - Image Analysis Overview
 
LAI - AWS IoT Workshop
LAI - AWS IoT WorkshopLAI - AWS IoT Workshop
LAI - AWS IoT Workshop
 
Introduction to the Serverless paradigm
Introduction to the Serverless paradigmIntroduction to the Serverless paradigm
Introduction to the Serverless paradigm
 
Cloud Academy's AWS Hands on-labs
Cloud Academy's AWS Hands on-labsCloud Academy's AWS Hands on-labs
Cloud Academy's AWS Hands on-labs
 

Recently uploaded

From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
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
 

Recently uploaded (20)

From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
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
 

How to deploy machine learning models in the Cloud

  • 1. How  to  deploy  Machine  Learning   models  in  the  Cloud Alex  Casalboni PYCON  SETTE   @  Firenze clda.co/pycon7-alex
  • 2. About  Me PYCON  SETTE  @  FIRENZE @alex_casalboni clda.co/pycon7-alex Bachelor  in  Computer  Science Master  in  Sound  &  Music  Engineering 6+  years  of  Web  Development 3+  years  of  Python
  • 3. Have  you  ever  met  a  Data  Scien@st? PYCON  SETTE  @  FIRENZE Bob Bob  leads  a  skilled  team  of  data  scienCsts Bob  has  built  a  great  ML  model Bob  loves  Python Bob  likes  user-­‐centered  ML clda.co/pycon7-alex
  • 4. How  did  Bob  build  his  model  in  Python? PYCON  SETTE  @  FIRENZE clda.co/pycon7-code clda.co/pycon7-alex Bob
  • 5. PYCON  SETTE  @  FIRENZE GPU  availability distributed  compuCng infrastructure-­‐aware  code 1.  Bob  needs  Elas@city clda.co/pycon7-alex And  why  is  deploying  a  challenge? Bob
  • 6. PYCON  SETTE  @  FIRENZE MulC-­‐model  architecture A/B  tesCng  &  versioning RESTful  API 2.  Bob  needs  plenty  of  Features Auth  layer clda.co/pycon7-alex And  why  is  deploying  a  challenge? Bob
  • 7. PYCON  SETTE  @  FIRENZE infrastructure  maintenance conCnuous  delivery  &  deployments automaCon,  performance  &  monitoring 3.  Data  Scien@sts  ain’t  DevOps ≠ clda.co/pycon7-alex And  why  is  deploying  a  challenge? Data   ScienCst DevOps
  • 8. PYCON  SETTE  @  FIRENZE model  design,  training  &  tesCng code  reviews    &  debugging data  exploraCon 4.  DevOps  ain’t  Data  Scien@sts ≠ clda.co/pycon7-alex And  why  is  deploying  a  challenge? Data   ScienCst DevOps
  • 9. Deployment  Strategies PYCON  SETTE  @  FIRENZE 1.  Web-­‐app  controller clda.co/pycon7-alex how  will  Bob  update  his  model(s)? same  website  auth  layer? shared  (limited)  uWSGI  processes? It’s  disarmingly  simple,  but… Bob
  • 10. Deployment  Strategies PYCON  SETTE  @  FIRENZE 2.  Fleet  of  servers clda.co/pycon7-alex same  problems  as  before Bob  has  many  more  machines  to  maintain sCll  no  elasCcity  (over-­‐provisioning) Bigger  capacity  and  no  code  changes,  but… Bob Bob2 Bob3 Load  Balancing
  • 11. Deployment  Strategies PYCON  SETTE  @  FIRENZE 3.  Auto  Scaling clda.co/pycon7-alex <Bob> sCll  shared  resources?  containers? even  bigger  lack  of  ownership what  about  caching,  versioning  and  auth? Bob  achieved  elasCcity  and  availability  ,  but… AWS  ELB  +  Auto  Scaling   (or  maybe  ElasCc  Beanstalk?)
  • 12. Deployment  Strategies PYCON  SETTE  @  FIRENZE 4.  Serverless clda.co/pycon7-alex + Amazon  API   Gateway AWS   Lambda Happy   Bob Infinite  scalability,  global  CDN  and  caching Transparent  elasCcity  (and  PAYG) RESTful  &  auth  layer  +  versioning  (for  free!) Bob  doesn’t  need  to  be  a  DevOps  anymore!
  • 13. The  Serverless  Cloud PYCON  SETTE  @  FIRENZEclda.co/pycon7-alex There is always a server somewhere,
 you just don't have to worry about it :)
  • 14. Does  Bob’s  code  change  a  lot? PYCON  SETTE  @  FIRENZEclda.co/pycon7-alex Basically,  no  change! Bob
  • 15. How  does  Bob  keep  the  model  updated? PYCON  SETTE  @  FIRENZEclda.co/pycon7-alex Bob Hint:  use  gzip!
  • 16. PYCON  SETTE  @  FIRENZE clda.co/pycon7-lambda clda.co/pycon7-alex
  • 17. Serverless  Cloud  Domina@on PYCON  SETTE  @  FIRENZE Amazon  Web  Services  (Lambda) Microso`  Azure  (FuncCons) Google  Cloud  Plaborm  (FuncCons) IBM  Bluemix  (OpenWhisk) hook.io Cloud  PlaSorms Hybrid  &  Microservices stackhut.com webtask.io iron.io clda.co/pycon7-alex