Serverless Computing with Apache OpenWhisk
summary
Demo shows Apache OpenWhisk running on IBM Cloud and locally, with a JavaScript hello world packaged as a zip and deployed via wsk update then run with wsk invoke --result. Web endpoints use --web true URLs; actions chain in packages and sequences; Cloudant/CouchDB changes feed and webhooks (Alexa, Twilio, GitHub) trigger functions. Platform auto-scales horizontally, billing is pay-as-you-go, cold start is measurable (hundreds of milliseconds), runtimes include Node, Java, Python, PHP and custom Docker. Debugging and testing tooling remain immature.
AI-written summary · about
chapters (6)
- 0:00Start
- 6:20APIs and Microservices Serverless is a great fit for Microservices!
- 16:56OpenWhisk Vocabulary trigger an event, such as an incoming HTTP request .rule map a trigger to an action .action a function, optionally with parameters package collect actions and parameters together sequence more than one action in a row .cold start time to run a fresh action
- 26:46Web-Enabled Actions
- 29:32Using Built-In Actions As an example: there's a wordCount action in the samples package
- 30:23Using Sequences For example: notify Slack when a user registers
