Date post: | 21-Jan-2018 |
Category: |
Technology |
Upload: | janakiram-msv |
View: | 155 times |
Download: | 2 times |
Developing ServerlessApplications with IBM Bluemix
Janakiram MSVjanakiram.com
Tech Talk Webinar Show
Agenda
• What is Serverless Computing?• Introduction to IBM Cloud Functions• Creating Actions, Triggers, and Rules• Exploring Packages• Understanding Sequences• Building an end-to-end Serverless Application
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)
What is OpenWhisk?
• Originally developed at IBM as a part of Bluemixportfolio
• 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
DemoHello World with IBM Cloud Functions
Exploring Packages
• Packages bundle related actions together• Each Package contains• Action• Feed
• IBM Cloud Functions include many pre-defined Packages
Exploring Packages
DemoExploring Weather Package
Exploring Sequences
T A1 A2
Sequences are a series of actions chained togetherResembles Unix Pipes
DemoExploring Sequences
Building an End-to-End Scenario
Database Read Log Order
Notify High-Value Order
New Record
DemoBuilding Serverless Notification for Cloudant
Thank You!
Janakiram MSVjanakiram.com
https://github.com/janakiramm/techtalk