Apache Openwhisk
Apache Openwhisk
Dr.S.Padmavathi
About..
• Openwhisk is a cloud platform that executes code
in response to events
• The OpenWhisk programming model...
• Is Event-driven
• Flexible, extensible, polyglot programming model
• Open source and open ecosytem(Apache
Incubator)
• Ability to run in public, private and in hybrid
models
The OpenWhisk platform
• supports a programming model in which
developers write functional logic (called Actions),
in any supported programming language, that
can be dynamically scheduled and run in
response to associated events (via Triggers) from
external sources (Feeds) or from HTTP requests.
• includes a REST API-based Command Line
Interface (CLI) along with other tooling to support
packaging, catalog services and many popular
container deployment options.
Programming model
Working Principle
Deployment with actions in
multiple programming languages
Components
• Events drive the Serverless execution of
functional code called Actions.
• Events can come from any Event Source or
Feed service including:
– Datastores, Message Queues, Mobile and Web
Applications, Sensors, Chatbots, Scheduled tasks
(via Alarms), etc.
What is a trigger?
• Triggers are named channels for classes or
kinds of events sent from Event Sources.
What is an Action?
• Actions are stateless functions (code snippets)
that run on the OpenWhisk platform.
• Actions encapsulate application logic to be
executed in response to events.
• Actions can be invoked manually by the
OpenWhisk REST API, OpenWhisk CLI, simple
and user-created APIs or automated
What is a Rule?
• $ git clone
https://github.com/apache/openwhisk-
devtools.git
• $ cd openwhisk-devtools/docker-compose
• $ make quick-start
OpenWhisk CLI (wsk)