SlideShare a Scribd company logo
Think 2018 / DOC ID / March 15th, 2018 / © 2018 IBM Corporation
Serverless and IBM Cloud Functions
Overview
Jeremias Werner
Senior Software Developer – IBM Cloud Functions
jerewern@de.ibm.com
• 10 Years in IBM, almost cloud computing (IaaS, PaaS, FaaS)
• Proud dad of a 4 ½ yr and 1 yr old daughter
Coming together is a beginning, staying
together is progress, and working
together is success.
—Henry Ford
IBM Cloud Functions
Agenda
1. What is serverless?
2. What are the advantages of serverless and why should I care?
3. What is IBM Cloud Functions?
4. What is IBM Cloud Functions good for?
IBM Cloud Functions
1. What is serverless?
2. What are the advantages of serverless and why should I care?
3. What is IBM Cloud Functions?
4. What is IBM Cloud Functions good for?
Agenda
IBM Cloud Functions
Focus more on code, less on
infrastructure
Increasingfocuson
businesslogic
Decreasing concern (and control) over
stack implementation
Bare Metal
Virtual machines
Functions
Containers
Apps
What is serverless?
IBM Cloud FunctionsWhat is serverless?
In a nutshell:
When to use serverless?
“I have code and
I want it to be
executed only when
needed - at any
scale”
IBM Cloud Functions
Runs code only on-demand on a
per-request basis
No management and
operation of infrastructures
Focus on developing value-
adding code and on driving
innovations
No servers Just code
What is serverless?
IBM Cloud Functions
Runs code only on-demand on a
per-request basis
Transparently
scales with the
number of
requests being
served
What is serverless?
IBM Cloud Functions
Runs code only on-demand on a
per-request basis
Only pay for
resources being
used, instead of
resources idling
around
What is serverless?
IBM Cloud Functions
1. What is serverless?
2. What are the advantages of serverless and why should I care?
3. What is IBM Cloud Functions?
4. What is IBM Cloud Functions good for?
Agenda
IBM Cloud FunctionsWhat are the advantages of serverless and why should I care?
Worry about scaling
• When to scale? (mem-, cpu-, response time-, etc. driven?)
• How fast can you scale?
Worry about resiliency & cost
• At least 2 processes for HA
• Keep them running & healthy
• Deployment in multiple regions
Charged even when idling / not 100% utilized
Continuous polling due to missing event programming model
Traditional model
Process
and Idle
IBM Cloud Functions
Scales inherently
• One process per request
No cost overhead for resiliency
• No long running process to be made HA / multi-region
Introduces event programming model
Charges only for what is used
• Only worry about code
higher dev velocity, lower operational costs
Serverless model
What are the advantages of serverless and why should I care?
Deploy actions
within millisecs,
run it, free up
resources
IBM Cloud Functions
Loyalty Vending Machine Scenario - IBM Cloud VMs
b1.2x4 0.105
t2 medium rhel 0.185
t2.medium windows 0.135
Average 0.14166667
server average monthly 102
automation 12
elb monthly 15
mgmt monthly 150
security monthly 21.6
total monthly price per server 300.6
number of servers 2
cluster annually 7214.4
number of environments 3
turn off discount 30
Total annually 15,150.24
Loyalty Vending Machine Scenario - IBM Cloud Functions
Calls per month 30,000,000.00
calls per day 1,000,000.00
calls per sec 11.57
memory 0.5
Duration sec 0.5
Gbsec per call 0.25
Gbsec per month 7,500,000.00
Free tier GBsec 400,000.00
Adjusted Gbsec/mo 7,100,000.00
Cost per Gbsec 0.000017
Cost for Gbsec 120.70
Total monthly 120.70
Total annually 1,448.40
Total Cost of Ownership
(Blog: https://www.ibm.com/blogs/bluemix/2018/09/estimate-compute-costs)
What are the advantages of serverless and why should I care?
IBM Cloud Functions
1. What is serverless?
2. What are the advantages of serverless and why should I care?
3. What is IBM Cloud Functions?
4. What is IBM Cloud Functions good for?
Agenda
IBM Cloud Functions
Available as managed service on
IBM Cloud
cloud.ibm.com/openwhisk
FaaS platform to execute
code in a serverless fashion
What is IBM Cloud Functions?
IBM Cloud Functions
Software also available as
open-source via Apache:
openwhisk.org
Ready to be downloaded,
installed, and managed by you
and on your hardware
What is IBM Cloud Functions?
FaaS platform to execute
code in a serverless fashion
IBM Cloud Functions
Any language or
binary is
supported
What is IBM Cloud Functions fka OpenWhisk?
Natively
supported
languages
(performance-
optimized)
Any other
language
supported via
container upload
JS/NodeJS
6/8/10
Java
PHP
Swift 4
Python 3
C/C++ Rust
bash
<your docker
container>
Ruby
Cobol …
Go .Netnew
new
IBM Cloud FunctionsWhat is IBM Cloud Functions fka OpenWhisk?
Periodic Cloudant Event Stream
Mobile Push Github AppConnect
API Gateway
Watson
Conversation
Event
Provider
IBM Cloud Functions
Let’s have a quick look how it works…
Agenda
IBM Cloud Functions
1. What is serverless?
2. What are the advantages of serverless and why should I care?
3. What is IBM Cloud Functions?
4. What is IBM Cloud Functions good for?
Agenda
IBM Cloud Functions
While IBM Cloud Functions is the key anchor point for serverless, there is a growing
set of services from other domains also delivering serverless attributes
This enables customers to build application topologies which are entirely
serverless
What is IBM Cloud Functions good for?
Serverless Application Platform
Cloudant Object
Storage
Event
Streams
API
Gateway
Watson
services
SQL
service
Cloud
Functions
IBM Cloud FunctionsWhat is IBM Cloud Functions good for?
Common use cases
• Serverless API Backends / Microservices
• Massively parallel compute / “Map” operations
• Parallel data (& compute) processing
• Data-at-rest processing & ETL pipelines
• Data processing enriched with cognitive capabilities
• Event Stream Processing
• Scheduled tasks
• Mobile backends
• IoT
• Conversational applications
IBM Cloud FunctionsWhat is IBM Cloud Functions good for?
Allows to map API
endpoints
to IBM Cloud
Functions actions
API GW available for free, without limits.
Define Actions:
getCostumer
createCostumer
deleteCostumer
Define API Endpoints (URLs) and map to Actions
Get: mydomain.com/…/customers
Post: mydomain.com/…/customers
Delete: mydomain.com/…/customers
12
Microservices/
API Backends
IBM Cloud FunctionsWhat is IBM Cloud Functions good for?
Data
processing
Ideally suited for working with structured
data, text, audio, image and video data:
IBM Cloud FunctionsWhat is IBM Cloud Functions good for?
Data
processing
http://ecc.ibm.com/case
-study/us-en/ECCF-
CDC12387USEN
10x faster
90% less cost
IBM Cloud FunctionsWhat is IBM Cloud Functions good for?
Cloud Functions is
used to compute
the content of user
dashboards
ESPN Fantasy
Football
(Source: https://developer.ibm.com/articles/watson-behind-the-code-fantasy-football-2018-part7)
IBM Cloud Functions
Massively parallel compute / “Map” operations
What is IBM Cloud Functions good for?
Any kind of embarrassingly parallel task is very well-suited to be run on
a serverless runtime. Each parallelizable task results in one action
invocation
• Data search & processing (specifically Cloud Object Storage)
• Map(-Reduce) operations
• Monte-Carlo Simulations
• Hyperparameter tuning
• Web scraping
• Genome processing
• …
IBM Cloud FunctionsWhat is IBM Cloud Functions good for?
Parallel Compute &
Data Processing
Run any kind of embarrassingly parallel task by
invoking functions 1000’s of times in parallel.
E.g. very well-suited for monte-carlo
simulations, machine learning inferencing, data
science tasks, ….
IBM-PyWren deploys, runs and monitors
standard Python code as parallel serverless
actions on IBM Cloud Functions
• Extends PyWren from the RISE Lab
Number of forecasts Local run Cloud Functions
1000 154 secs 20 secs
100,000 ~10,000 secs ~140 secs
https://developer.ibm.com/code/open/centers/codait/projects/pywren/
IBM Cloud FunctionsWhat is IBM Cloud Functions good for?
Processing
unstructured data
Example, a data scientist wants to
prepare images of people for deep
learning
IBM Cloud
Functions
IBM Cloud Object Store
IBM Cloud FunctionsWhat is IBM Cloud Functions good for?
Example:
Serverless AI Pipeline
1.Serverless upload with Aspera
2.Serverless storage with COS
3.Serverless data preparation with
Cloud Functions and PyWren
4.Machine learning with Watson
Machine Learning
IBM Cloud
Functions
IBM Cloud
Object Store
Machine
Learning
Aspera
IBM Cloud Functions
Event stream processing
via Event Streams
What is IBM Cloud Functions good for?
Managed Apache
Kafka service for real-
time build outs of data
pipelines and
streaming apps
Ideally suited for working with all sorts of data stream
ingestions (for validation, cleansing, enrichment,
transformation, …)
Business data streams (from other data sources)
IoT sensor data
Log data
Financial (market) data
…
IBM
Event Streams
IBM Cloud FunctionsWhat is IBM Cloud Functions good for?
IoT Trigger events based on
IoT sensor data
Device
Watson IOT
Platform
2
3
Trigger
an Action
IOT
(related blog: https://www.ibm.com/blogs/bluemix/2018/09/how-kone-uses-data-analytics-and-event-driven-maintenance-to-keep-cities-in-motion/)
Example KONE
• eliminate or reduce the time that KONE
equipment goes out of service.
• Sensor data from the equipment can
reveal potential issues and risks before
human eyes and ears can detect them
• event-driven architecture that allocates
the compute resources required to
handle each incoming stream of data,
automatically scaling as needed.
1
IBM Cloud FunctionsWhat is IBM Cloud Functions good for?
Cognitive
IBM Cloud Functions
Scheduled
tasks
What is IBM Cloud Functions good for?

More Related Content

What's hot

Client presentation ibm private modular cloud_082013
Client presentation ibm private modular cloud_082013Client presentation ibm private modular cloud_082013
Client presentation ibm private modular cloud_082013
jimmykibm
 
IBM Smart Cloud Provisioning Overview
IBM Smart Cloud Provisioning OverviewIBM Smart Cloud Provisioning Overview
IBM Smart Cloud Provisioning Overview
IBM Danmark
 

What's hot (20)

Lessons Learned from building a serverless API
Lessons Learned from building  a serverless APILessons Learned from building  a serverless API
Lessons Learned from building a serverless API
 
enlight cloud
enlight cloudenlight cloud
enlight cloud
 
Client presentation ibm private modular cloud_082013
Client presentation ibm private modular cloud_082013Client presentation ibm private modular cloud_082013
Client presentation ibm private modular cloud_082013
 
2011.10.19 - Cloud Partner Day - Reseller Breakout
2011.10.19 - Cloud Partner Day - Reseller Breakout2011.10.19 - Cloud Partner Day - Reseller Breakout
2011.10.19 - Cloud Partner Day - Reseller Breakout
 
Bluemix
BluemixBluemix
Bluemix
 
Building Serverless Apps with Kafka (Dale Lane, IBM) Kafka Summit London 2019
Building Serverless Apps with Kafka (Dale Lane, IBM) Kafka Summit London 2019Building Serverless Apps with Kafka (Dale Lane, IBM) Kafka Summit London 2019
Building Serverless Apps with Kafka (Dale Lane, IBM) Kafka Summit London 2019
 
How do you deliver your applications to the cloud?
How do you deliver your applications to the cloud?How do you deliver your applications to the cloud?
How do you deliver your applications to the cloud?
 
Getting Started with Amazon WorkSpaces
Getting Started with Amazon WorkSpacesGetting Started with Amazon WorkSpaces
Getting Started with Amazon WorkSpaces
 
Microservices development for DevOps
Microservices development for DevOpsMicroservices development for DevOps
Microservices development for DevOps
 
10 Pro Tips for Scaling Your Startup from 0-10M Users
10 Pro Tips for Scaling Your Startup from 0-10M Users10 Pro Tips for Scaling Your Startup from 0-10M Users
10 Pro Tips for Scaling Your Startup from 0-10M Users
 
IBM Smart Cloud Provisioning Overview
IBM Smart Cloud Provisioning OverviewIBM Smart Cloud Provisioning Overview
IBM Smart Cloud Provisioning Overview
 
FaaS Meets Java EE: Developing Cloud Native Applications at Speed
FaaS Meets Java EE: Developing Cloud Native Applications at SpeedFaaS Meets Java EE: Developing Cloud Native Applications at Speed
FaaS Meets Java EE: Developing Cloud Native Applications at Speed
 
Microservices Development - ICP Workshop Batch II
Microservices Development - ICP Workshop Batch IIMicroservices Development - ICP Workshop Batch II
Microservices Development - ICP Workshop Batch II
 
規劃大規模遷移到 AWS 的最佳實踐
規劃大規模遷移到 AWS 的最佳實踐規劃大規模遷移到 AWS 的最佳實踐
規劃大規模遷移到 AWS 的最佳實踐
 
Accelerate Digital Transformation with IBM Cloud Private
Accelerate Digital Transformation with IBM Cloud PrivateAccelerate Digital Transformation with IBM Cloud Private
Accelerate Digital Transformation with IBM Cloud Private
 
Java Developer on AWS 在AWS上開發Java應用
Java Developer on AWS 在AWS上開發Java應用Java Developer on AWS 在AWS上開發Java應用
Java Developer on AWS 在AWS上開發Java應用
 
AWS Cloud Technology And Future of Faster Modern Architecture
AWS Cloud Technology And Future of Faster Modern ArchitectureAWS Cloud Technology And Future of Faster Modern Architecture
AWS Cloud Technology And Future of Faster Modern Architecture
 
Creating Microservices Application with IBM Cloud Private (ICP) - Container a...
Creating Microservices Application with IBM Cloud Private (ICP) - Container a...Creating Microservices Application with IBM Cloud Private (ICP) - Container a...
Creating Microservices Application with IBM Cloud Private (ICP) - Container a...
 
The Lean Enterprise
The Lean EnterpriseThe Lean Enterprise
The Lean Enterprise
 
Creating Effective Mobile Applications with IBM Bluemix
Creating Effective Mobile Applications with IBM BluemixCreating Effective Mobile Applications with IBM Bluemix
Creating Effective Mobile Applications with IBM Bluemix
 

Similar to Meetup - Serverless

Deploying IBM WebSphere Application Server to the Cloud_GWC_3-24-2015
Deploying IBM WebSphere Application Server to the Cloud_GWC_3-24-2015Deploying IBM WebSphere Application Server to the Cloud_GWC_3-24-2015
Deploying IBM WebSphere Application Server to the Cloud_GWC_3-24-2015
Yakura Coffee
 
Inspirationsdag 24. april: Flyt til skyen med IBM SmartCloud
Inspirationsdag 24. april: Flyt til skyen med IBM SmartCloudInspirationsdag 24. april: Flyt til skyen med IBM SmartCloud
Inspirationsdag 24. april: Flyt til skyen med IBM SmartCloud
Notesnet_dk
 
IBM BPM off prem options
IBM BPM off prem options IBM BPM off prem options
IBM BPM off prem options
sflynn073
 

Similar to Meetup - Serverless (20)

Workshop: Develop Serverless Applications with IBM Cloud Functions
Workshop: Develop Serverless Applications with IBM Cloud FunctionsWorkshop: Develop Serverless Applications with IBM Cloud Functions
Workshop: Develop Serverless Applications with IBM Cloud Functions
 
Apache OpenWhisk
Apache OpenWhiskApache OpenWhisk
Apache OpenWhisk
 
Presentation_ISDC 2014_Jonathan Wisler_SoftLayer
Presentation_ISDC 2014_Jonathan Wisler_SoftLayerPresentation_ISDC 2014_Jonathan Wisler_SoftLayer
Presentation_ISDC 2014_Jonathan Wisler_SoftLayer
 
Integration (Application?) Modernization with IBM Garage
Integration (Application?) Modernization with IBM GarageIntegration (Application?) Modernization with IBM Garage
Integration (Application?) Modernization with IBM Garage
 
IBM Cloud UCC Talk, 8th December 2020 - Cloud Native, Microservices, and Serv...
IBM Cloud UCC Talk, 8th December 2020 - Cloud Native, Microservices, and Serv...IBM Cloud UCC Talk, 8th December 2020 - Cloud Native, Microservices, and Serv...
IBM Cloud UCC Talk, 8th December 2020 - Cloud Native, Microservices, and Serv...
 
Serverless Computing: Driving Innovation and Business Value
Serverless Computing: Driving Innovation and Business ValueServerless Computing: Driving Innovation and Business Value
Serverless Computing: Driving Innovation and Business Value
 
Deploying IBM WebSphere Application Server to the Cloud_GWC_3-24-2015
Deploying IBM WebSphere Application Server to the Cloud_GWC_3-24-2015Deploying IBM WebSphere Application Server to the Cloud_GWC_3-24-2015
Deploying IBM WebSphere Application Server to the Cloud_GWC_3-24-2015
 
Creating Microservices Application with IBM Cloud Private (ICP) - introductio...
Creating Microservices Application with IBM Cloud Private (ICP) - introductio...Creating Microservices Application with IBM Cloud Private (ICP) - introductio...
Creating Microservices Application with IBM Cloud Private (ICP) - introductio...
 
The IBM Cloud
The IBM CloudThe IBM Cloud
The IBM Cloud
 
Inspirationsdag 24. april: Flyt til skyen med IBM SmartCloud
Inspirationsdag 24. april: Flyt til skyen med IBM SmartCloudInspirationsdag 24. april: Flyt til skyen med IBM SmartCloud
Inspirationsdag 24. april: Flyt til skyen med IBM SmartCloud
 
IBM BPM off prem options
IBM BPM off prem options IBM BPM off prem options
IBM BPM off prem options
 
Go Cloud Native with IBM Bluemix Developer Console - GIDS17
Go Cloud Native with IBM Bluemix Developer Console - GIDS17Go Cloud Native with IBM Bluemix Developer Console - GIDS17
Go Cloud Native with IBM Bluemix Developer Console - GIDS17
 
When to use serverless computing.pdf
When to use serverless computing.pdfWhen to use serverless computing.pdf
When to use serverless computing.pdf
 
Compose Your Digital Enterprise
Compose Your Digital EnterpriseCompose Your Digital Enterprise
Compose Your Digital Enterprise
 
Effectively Plan for Your Move to the Cloud
Effectively Plan for Your Move to the CloudEffectively Plan for Your Move to the Cloud
Effectively Plan for Your Move to the Cloud
 
Cloud Innovation Tour - Design Track
Cloud Innovation Tour - Design TrackCloud Innovation Tour - Design Track
Cloud Innovation Tour - Design Track
 
IBM Cloud Paris Meetup - 20180628 - IBM Cloud Private
IBM Cloud Paris Meetup - 20180628 - IBM Cloud PrivateIBM Cloud Paris Meetup - 20180628 - IBM Cloud Private
IBM Cloud Paris Meetup - 20180628 - IBM Cloud Private
 
Jumpstart Azure
Jumpstart AzureJumpstart Azure
Jumpstart Azure
 
PureSystems on the Public Cloud John Kaemmerer and Gerry Novan, 11th Sep 14
PureSystems on the Public Cloud John Kaemmerer and Gerry Novan, 11th Sep 14PureSystems on the Public Cloud John Kaemmerer and Gerry Novan, 11th Sep 14
PureSystems on the Public Cloud John Kaemmerer and Gerry Novan, 11th Sep 14
 
App Modernization
App ModernizationApp Modernization
App Modernization
 

Recently uploaded

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
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
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
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
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
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
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
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
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
 

Meetup - Serverless

  • 1. Think 2018 / DOC ID / March 15th, 2018 / © 2018 IBM Corporation Serverless and IBM Cloud Functions Overview
  • 2. Jeremias Werner Senior Software Developer – IBM Cloud Functions jerewern@de.ibm.com • 10 Years in IBM, almost cloud computing (IaaS, PaaS, FaaS) • Proud dad of a 4 ½ yr and 1 yr old daughter Coming together is a beginning, staying together is progress, and working together is success. —Henry Ford
  • 3. IBM Cloud Functions Agenda 1. What is serverless? 2. What are the advantages of serverless and why should I care? 3. What is IBM Cloud Functions? 4. What is IBM Cloud Functions good for?
  • 4. IBM Cloud Functions 1. What is serverless? 2. What are the advantages of serverless and why should I care? 3. What is IBM Cloud Functions? 4. What is IBM Cloud Functions good for? Agenda
  • 5. IBM Cloud Functions Focus more on code, less on infrastructure Increasingfocuson businesslogic Decreasing concern (and control) over stack implementation Bare Metal Virtual machines Functions Containers Apps What is serverless?
  • 6. IBM Cloud FunctionsWhat is serverless? In a nutshell: When to use serverless? “I have code and I want it to be executed only when needed - at any scale”
  • 7. IBM Cloud Functions Runs code only on-demand on a per-request basis No management and operation of infrastructures Focus on developing value- adding code and on driving innovations No servers Just code What is serverless?
  • 8. IBM Cloud Functions Runs code only on-demand on a per-request basis Transparently scales with the number of requests being served What is serverless?
  • 9. IBM Cloud Functions Runs code only on-demand on a per-request basis Only pay for resources being used, instead of resources idling around What is serverless?
  • 10. IBM Cloud Functions 1. What is serverless? 2. What are the advantages of serverless and why should I care? 3. What is IBM Cloud Functions? 4. What is IBM Cloud Functions good for? Agenda
  • 11. IBM Cloud FunctionsWhat are the advantages of serverless and why should I care? Worry about scaling • When to scale? (mem-, cpu-, response time-, etc. driven?) • How fast can you scale? Worry about resiliency & cost • At least 2 processes for HA • Keep them running & healthy • Deployment in multiple regions Charged even when idling / not 100% utilized Continuous polling due to missing event programming model Traditional model Process and Idle
  • 12. IBM Cloud Functions Scales inherently • One process per request No cost overhead for resiliency • No long running process to be made HA / multi-region Introduces event programming model Charges only for what is used • Only worry about code higher dev velocity, lower operational costs Serverless model What are the advantages of serverless and why should I care? Deploy actions within millisecs, run it, free up resources
  • 13. IBM Cloud Functions Loyalty Vending Machine Scenario - IBM Cloud VMs b1.2x4 0.105 t2 medium rhel 0.185 t2.medium windows 0.135 Average 0.14166667 server average monthly 102 automation 12 elb monthly 15 mgmt monthly 150 security monthly 21.6 total monthly price per server 300.6 number of servers 2 cluster annually 7214.4 number of environments 3 turn off discount 30 Total annually 15,150.24 Loyalty Vending Machine Scenario - IBM Cloud Functions Calls per month 30,000,000.00 calls per day 1,000,000.00 calls per sec 11.57 memory 0.5 Duration sec 0.5 Gbsec per call 0.25 Gbsec per month 7,500,000.00 Free tier GBsec 400,000.00 Adjusted Gbsec/mo 7,100,000.00 Cost per Gbsec 0.000017 Cost for Gbsec 120.70 Total monthly 120.70 Total annually 1,448.40 Total Cost of Ownership (Blog: https://www.ibm.com/blogs/bluemix/2018/09/estimate-compute-costs) What are the advantages of serverless and why should I care?
  • 14. IBM Cloud Functions 1. What is serverless? 2. What are the advantages of serverless and why should I care? 3. What is IBM Cloud Functions? 4. What is IBM Cloud Functions good for? Agenda
  • 15. IBM Cloud Functions Available as managed service on IBM Cloud cloud.ibm.com/openwhisk FaaS platform to execute code in a serverless fashion What is IBM Cloud Functions?
  • 16. IBM Cloud Functions Software also available as open-source via Apache: openwhisk.org Ready to be downloaded, installed, and managed by you and on your hardware What is IBM Cloud Functions? FaaS platform to execute code in a serverless fashion
  • 17. IBM Cloud Functions Any language or binary is supported What is IBM Cloud Functions fka OpenWhisk? Natively supported languages (performance- optimized) Any other language supported via container upload JS/NodeJS 6/8/10 Java PHP Swift 4 Python 3 C/C++ Rust bash <your docker container> Ruby Cobol … Go .Netnew new
  • 18. IBM Cloud FunctionsWhat is IBM Cloud Functions fka OpenWhisk? Periodic Cloudant Event Stream Mobile Push Github AppConnect API Gateway Watson Conversation Event Provider
  • 19. IBM Cloud Functions Let’s have a quick look how it works… Agenda
  • 20. IBM Cloud Functions 1. What is serverless? 2. What are the advantages of serverless and why should I care? 3. What is IBM Cloud Functions? 4. What is IBM Cloud Functions good for? Agenda
  • 21. IBM Cloud Functions While IBM Cloud Functions is the key anchor point for serverless, there is a growing set of services from other domains also delivering serverless attributes This enables customers to build application topologies which are entirely serverless What is IBM Cloud Functions good for? Serverless Application Platform Cloudant Object Storage Event Streams API Gateway Watson services SQL service Cloud Functions
  • 22. IBM Cloud FunctionsWhat is IBM Cloud Functions good for? Common use cases • Serverless API Backends / Microservices • Massively parallel compute / “Map” operations • Parallel data (& compute) processing • Data-at-rest processing & ETL pipelines • Data processing enriched with cognitive capabilities • Event Stream Processing • Scheduled tasks • Mobile backends • IoT • Conversational applications
  • 23. IBM Cloud FunctionsWhat is IBM Cloud Functions good for? Allows to map API endpoints to IBM Cloud Functions actions API GW available for free, without limits. Define Actions: getCostumer createCostumer deleteCostumer Define API Endpoints (URLs) and map to Actions Get: mydomain.com/…/customers Post: mydomain.com/…/customers Delete: mydomain.com/…/customers 12 Microservices/ API Backends
  • 24. IBM Cloud FunctionsWhat is IBM Cloud Functions good for? Data processing Ideally suited for working with structured data, text, audio, image and video data:
  • 25. IBM Cloud FunctionsWhat is IBM Cloud Functions good for? Data processing http://ecc.ibm.com/case -study/us-en/ECCF- CDC12387USEN 10x faster 90% less cost
  • 26. IBM Cloud FunctionsWhat is IBM Cloud Functions good for? Cloud Functions is used to compute the content of user dashboards ESPN Fantasy Football (Source: https://developer.ibm.com/articles/watson-behind-the-code-fantasy-football-2018-part7)
  • 27. IBM Cloud Functions Massively parallel compute / “Map” operations What is IBM Cloud Functions good for? Any kind of embarrassingly parallel task is very well-suited to be run on a serverless runtime. Each parallelizable task results in one action invocation • Data search & processing (specifically Cloud Object Storage) • Map(-Reduce) operations • Monte-Carlo Simulations • Hyperparameter tuning • Web scraping • Genome processing • …
  • 28. IBM Cloud FunctionsWhat is IBM Cloud Functions good for? Parallel Compute & Data Processing Run any kind of embarrassingly parallel task by invoking functions 1000’s of times in parallel. E.g. very well-suited for monte-carlo simulations, machine learning inferencing, data science tasks, …. IBM-PyWren deploys, runs and monitors standard Python code as parallel serverless actions on IBM Cloud Functions • Extends PyWren from the RISE Lab Number of forecasts Local run Cloud Functions 1000 154 secs 20 secs 100,000 ~10,000 secs ~140 secs https://developer.ibm.com/code/open/centers/codait/projects/pywren/
  • 29. IBM Cloud FunctionsWhat is IBM Cloud Functions good for? Processing unstructured data Example, a data scientist wants to prepare images of people for deep learning IBM Cloud Functions IBM Cloud Object Store
  • 30. IBM Cloud FunctionsWhat is IBM Cloud Functions good for? Example: Serverless AI Pipeline 1.Serverless upload with Aspera 2.Serverless storage with COS 3.Serverless data preparation with Cloud Functions and PyWren 4.Machine learning with Watson Machine Learning IBM Cloud Functions IBM Cloud Object Store Machine Learning Aspera
  • 31. IBM Cloud Functions Event stream processing via Event Streams What is IBM Cloud Functions good for? Managed Apache Kafka service for real- time build outs of data pipelines and streaming apps Ideally suited for working with all sorts of data stream ingestions (for validation, cleansing, enrichment, transformation, …) Business data streams (from other data sources) IoT sensor data Log data Financial (market) data … IBM Event Streams
  • 32. IBM Cloud FunctionsWhat is IBM Cloud Functions good for? IoT Trigger events based on IoT sensor data Device Watson IOT Platform 2 3 Trigger an Action IOT (related blog: https://www.ibm.com/blogs/bluemix/2018/09/how-kone-uses-data-analytics-and-event-driven-maintenance-to-keep-cities-in-motion/) Example KONE • eliminate or reduce the time that KONE equipment goes out of service. • Sensor data from the equipment can reveal potential issues and risks before human eyes and ears can detect them • event-driven architecture that allocates the compute resources required to handle each incoming stream of data, automatically scaling as needed. 1
  • 33. IBM Cloud FunctionsWhat is IBM Cloud Functions good for? Cognitive
  • 34. IBM Cloud Functions Scheduled tasks What is IBM Cloud Functions good for?