Top Banner
27.03.2017 Serverless Computing / FaaS
19

Serverless computing and Function-as-a-Service (FaaS)

Apr 11, 2017

Download

Software

Moritz Strube
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: Serverless computing and Function-as-a-Service (FaaS)

27.03.2017

Serverless Computing / FaaS

Page 2: Serverless computing and Function-as-a-Service (FaaS)

About me

Co-Founder and CTOVoice and chat user interfaces in combination with AI to boost productivity at the workplace.

botconnect.io

Senior Analyst in ResidenceObserving the technology industry and its impact on business and society to deliver insight and foresight.

crisp-research.com

Page 3: Serverless computing and Function-as-a-Service (FaaS)

What is FaaS?

Trigger Function Integration

… in the cloud*

* for discussion of serverless computing on premise see Hausenblas: Serverless Ops

Page 4: Serverless computing and Function-as-a-Service (FaaS)

FaaS vs PaaS

• unit of computation is a function

• job oriented

• no provisioning

• transparent autoscaling

• low latency*

* 10 - 100 ms for Javascript and Python, >10s for JVM under certain conditions

Page 5: Serverless computing and Function-as-a-Service (FaaS)

FaaS providers

• Amazon AWS Lambda

• Microsoft Azure Functions

• Google Cloud Functions

• IBM Bluemix OpenWhisk

• Iron Functions*

• Galactic Fog Gestalt Framework*

* Open Source

Page 6: Serverless computing and Function-as-a-Service (FaaS)

Differences in offerings

• triggers

• programming languages

• pricing

• cloud / on-premise

Page 7: Serverless computing and Function-as-a-Service (FaaS)

How to use

example: AWS Lambda

• create lambda function

• choose template

• choose trigger

• configure function

• implement function

Page 8: Serverless computing and Function-as-a-Service (FaaS)

Use Case Alexa

• templates: alexa skills templates

• trigger: alexa skills kit

• function: handling intents

Page 9: Serverless computing and Function-as-a-Service (FaaS)

Use Case AWS IoT

• templates: IoT templates

• trigger: AWS IoT

• function: handling MQTT message

Page 10: Serverless computing and Function-as-a-Service (FaaS)

Use Case API Gateway

• templates: api gateway / microservice templates

• trigger: API gateway

• function: handling http requests

Other services

User

HTTP requests

Integration requests

API Gateway

Lambda

Page 11: Serverless computing and Function-as-a-Service (FaaS)

serverless.com

Source: serverless.com

Page 13: Serverless computing and Function-as-a-Service (FaaS)

serverless.com / workflow

serverless create

serverless deploy

serverless remove

Source: serverless.com

Page 14: Serverless computing and Function-as-a-Service (FaaS)

Serverless.com / functions

Source: serverless.com

Page 15: Serverless computing and Function-as-a-Service (FaaS)

Serverless.com / events

Source: serverless.com

Page 16: Serverless computing and Function-as-a-Service (FaaS)

Serverless.com / very simple example

serverless.yml

handler.js

aws api gateway

Page 17: Serverless computing and Function-as-a-Service (FaaS)

Conclusions

• „serverless" is a confusing name

• FaaS is still in an early stage

• not the right approach for every problem

• pros: development / deployment / operations / scaling / lean & fast

• cons: debugging / monitoring

Page 19: Serverless computing and Function-as-a-Service (FaaS)

thank you

[email protected]@mostwi