Top Banner
Building Serverless Web Applications with OpenWhisk bluemix.net/openwhisk Niklas Heidloff, IBM Developer Advocate @nheidloff July 2017
24

Building Serverless Web Applications with OpenWhisk

Jan 22, 2018

Download

Software

Niklas Heidloff
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Building Serverless Web Applications with OpenWhisk

Building Serverless Web Applications

with OpenWhisk

bluemix.net/openwhisk

Niklas Heidloff, IBM Developer Advocate

@nheidloff

July 2017

Page 2: Building Serverless Web Applications with OpenWhisk

What is ‘Serverless’ and ‘Function as a Service’ ?

Serverless

•  Existence of servers is hidden from developers

•  Code is executed on-demand in an auto-scaled, managed environment through event driven triggers

•  Encourages and simplifies developing microservice-oriented solutions via functions

@nheidloff

Page 3: Building Serverless Web Applications with OpenWhisk

Why Serverless for Web Applications ?

Serverless

•  Often cheaper than other server-side compute options since you only pay for the exact duration your code is executing

•  Easier to operate than other compute options –  Example: Auto-scalability –  Example: Built-in API management

•  Serverless functions can be built with JavaScript skills which web developers have

@nheidloff

Page 4: Building Serverless Web Applications with OpenWhisk

Apache OpenWhisk

Serverless

@nheidloff

Page 5: Building Serverless Web Applications with OpenWhisk

Demos

Dem

o

•  Creation of simple JavaScript actions

•  Web actions for anonymous access

•  API management, including OAuth access

•  Angular application accessing protected action

@nheidloff

Annotations in orange

Page 6: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Create JavaScript Action

Page 7: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Synchronous Action

Page 8: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Asynchronous Action

Page 9: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Invocation Results

Page 10: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Local Development and CLI

Page 11: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Monitoring and Logs

Page 12: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Web Actions for anonymous Access

Page 13: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Built-in API Management

Page 14: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Require User Authentication

Page 15: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Analytics for APIs

Page 16: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

API Explorer

Page 17: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Creation of Google Application

Page 18: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Simple Angular Sample App

Page 19: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Angular Code to invoke the login

Page 20: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Google Authentication OAuth Dance

Page 21: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Simple Angular Sample App

Page 22: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Angular Code to invoke Action

Page 23: Building Serverless Web Applications with OpenWhisk

Dem

o

@nheidloff

Simple Angular Sample App

Page 24: Building Serverless Web Applications with OpenWhisk

Discussion

github.com/nheidloff/openwhisk-serverless-webapp heidloff.net

bluemix.net/openwhisk

Niklas Heidloff, IBM Developer Advocate

@nheidloff

July 2017