Table of Contents for
Learning OpenWhisk

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition Learning OpenWhisk by Michele SciabarrĂ  Published by O'Reilly Media, Inc., 2019
  1. Cover
  2. nav
  3. Learning OpenWhisk
  4. Learning OpenWhisk
  5. 1. Serverless and OpenWhisk Architecture
  6. 2. A Simple Serverless Application
  7. 3. OpenWhisk CLI and Javascript API
  8. 4. Unit Testing OpenWhisk Applications
  1. 1. Serverless and OpenWhisk Architecture
    1. Apache OpenWhisk Architecture
      1. Functions and Events
      2. Architecture Overview
      3. Programming Languages for OpenWhisk
      4. Actions and Action Composition
    2. How OpenWhisk Works
      1. Nginx
      2. Controller
      3. Load Balancer
      4. Invoker
      5. Aysnchronous Client
    3. Serverless Execution Constraints
      1. Action Execution Constraints
      2. Actions are Functional
      3. Actions are Event Driven
      4. Actions do not have Local State
      5. Actions are Time Bounded
      6. Actions are Not Ordered
    4. From JavaEE to Serverless
      1. Classical JavaEE Architecture
      2. Serveless equivalent of JavaEE
      3. Tiers
      4. Components
      5. APIs
      6. Connectors
      7. Application Server
  2. 2. A Simple Serverless Application
    1. Create a Contact Form
      1. The Bash command line is a prerequisite for development
    2. Register into the IBM Cloud
    3. A Form in HTML
    4. Form Validation
      1. Address Validation
      2. Returning the result
    5. Write in a Database
      1. Invoking actions
      2. Storing in the database
    6. Send an Email
      1. Configuring Mailgun
      2. Writing an action for sending email
      3. Creating an action sequence
    7. Summary
  3. 3. OpenWhisk CLI and Javascript API
    1. The wsk command
      1. Configure the wsk command
      2. OpenWhisk Entity Names
    2. Define Packages
    3. Create Actions
      1. Chain Sequences of Actions
      2. Actions including Libraries
    4. Inspect Activations
    5. Manage Triggers and Rules
      1. Associate Triggers to Actions with Rules
    6. Create Feeds
    7. OpenWhisk Javascript API
      1. Asynchronous invocation
      2. Introducing Promises
      3. Creating a Promise
    8. Access OpenWhisk API
      1. Overview of the API
    9. Invoking Actions
      1. Invoking multiple promises
    10. Fire Triggers
    11. Inspect Activations
    12. Summary
  4. 4. Unit Testing OpenWhisk Applications
    1. Using the Jest Test Runner
      1. Using Jest
      2. Configuring an Environment to Locally run OpenWhisk actions
      3. Setting OpenWhisk Enviroment Variables
      4. Snapshot Testing
      5. Updating a Snapshot when something change
    2. How to Implement Mocking
      1. Mocking an https request
      2. The action to be tested by Mocking
      3. Mocking the https module
    3. Mocking the OpenWhisk API
      1. Using the mocking library to invoke an action
      2. Mocking action parameters
      3. Mocking a sequence
    4. Summary
Back to top