Getting Started with
Apache OpenWhisk
Janakiram MSV
janakiram.com
Tech Talk Webinar Show
Agenda
• What is Serverless Computing?
• Introduction to Apache OpenWhisk
• Deployment Models
• OpenWhisk on Bluemix
The Four Waves of Computing
x86 Servers1
Virtualization2
Containerization3
Serverless Computing4
Serverless Computing
• Emphasis on code snippets than servers or
platforms
• Execute code without the need to provision
resources
• Function as a fundamental unit of deployment
• Functions as a Service (FaaS)
Serverless Market Landscape
(Public Cloud)
AWS
Lambda
Azure
Functions
Google Cloud
Functions
IBM Cloud
Functions
Three Attributes of Serverless
1. Event driven computing model
2. Pay-per execution pricing model
3. Transparent resource allocation
through infrastructure abstraction
What is OpenWhisk?
• Originally developed at IBM as a part of Bluemix
portfolio
• Donated to Apache Foundation
• Currently an incubation project at Apache
• One of the most mature open source FaaS projects
• Commercially available as IBM Cloud Functions, a
hosted service on Bluemix
• Integrated with core building blocks of Bluemix
What is OpenWhisk?
• Runs functions in response to events from web or
mobile apps
• Functions can be directly invoked via HTTP
• Code executes in response to
• HTTP call
• Database state change
• File uploaded to object storage
• Many other event triggers…
OpenWhisk Architecture
OpenWhisk Programming Model
• Services define the events they emit as triggers, and developers
associate the actions to handle the events via rules
• The developer only needs to care about implementing the desired
application logic - the system handles the rest
T A R
Programming Model - Trigger
A class of events belonging to an application
Programming Model - Actions
An event-handler that responds to an event
Programming Model - Rules
An association of Trigger and Actions
OpenWhisk Workflow
OpenWhisk Language Support
Demo
Exploring OpenWhisk through
IBM Cloud Functions
Thank You!
Janakiram MSV
janakiram.com

TechTalk Webinar Series - Getting Started with Apache OpenWhisk

  • 1.
    Getting Started with ApacheOpenWhisk Janakiram MSV janakiram.com Tech Talk Webinar Show
  • 2.
    Agenda • What isServerless Computing? • Introduction to Apache OpenWhisk • Deployment Models • OpenWhisk on Bluemix
  • 3.
    The Four Wavesof Computing x86 Servers1 Virtualization2 Containerization3 Serverless Computing4
  • 4.
    Serverless Computing • Emphasison code snippets than servers or platforms • Execute code without the need to provision resources • Function as a fundamental unit of deployment • Functions as a Service (FaaS)
  • 5.
    Serverless Market Landscape (PublicCloud) AWS Lambda Azure Functions Google Cloud Functions IBM Cloud Functions
  • 6.
    Three Attributes ofServerless 1. Event driven computing model 2. Pay-per execution pricing model 3. Transparent resource allocation through infrastructure abstraction
  • 7.
    What is OpenWhisk? •Originally developed at IBM as a part of Bluemix portfolio • Donated to Apache Foundation • Currently an incubation project at Apache • One of the most mature open source FaaS projects • Commercially available as IBM Cloud Functions, a hosted service on Bluemix • Integrated with core building blocks of Bluemix
  • 8.
    What is OpenWhisk? •Runs functions in response to events from web or mobile apps • Functions can be directly invoked via HTTP • Code executes in response to • HTTP call • Database state change • File uploaded to object storage • Many other event triggers…
  • 9.
  • 10.
    OpenWhisk Programming Model •Services define the events they emit as triggers, and developers associate the actions to handle the events via rules • The developer only needs to care about implementing the desired application logic - the system handles the rest T A R
  • 11.
    Programming Model -Trigger A class of events belonging to an application
  • 12.
    Programming Model -Actions An event-handler that responds to an event
  • 13.
    Programming Model -Rules An association of Trigger and Actions
  • 14.
  • 15.
  • 16.
  • 17.