Top Banner
THE SERVERLESS CLOUD BART BLOMMAERTS @DAGGIEBE
35

the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

May 21, 2020

Download

Documents

dariahiddleston
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: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUDBART BLOMMAERTS@DAGGIEBE

Page 2: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

BART BLOMMAERTS

▸ Application Architect

▸ Ordina Belgium

▸ JWorks

▸ @DaggieBe

Page 3: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

WHAT?SERVERLESS

Page 4: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

IAAS

Page 5: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

PAAS

Page 6: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

▸ Not having a clue

CLUE - LESS

Page 7: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

▸ Not having … servers?

SERVER - LESS

Page 8: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

NO MORE SERVERS ?

▸ Obviously not

▸ Existence of servers is hidden

▸ Applications need to run on something

▸ But …

Page 9: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

NO MORE WORRIES ?

▸ Well ..

▸ Less server management

▸ No worries about security updates, scalability, availability, …

Page 10: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

NO MORE OPS ?

▸ Well …

▸ Specialised, outsourced team

▸ Still need:

▸ Monitoring, deployment, security, networking, debugging support, memory management, scaling, configuration, …

▸ Opportunity for tooling!

Page 11: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

FAAS

Page 12: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

EVENT-DRIVEN

▸ Can be triggered by many different event types

▸ Depends on cloud provider

Page 13: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

PAY PER EXECUTION

▸ No running servers

▸ Only consume server time, when executed

▸ Only pay when executed

▸ Small operational cost

Page 14: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

PAY PER EXECUTION - EXAMPLE (AWS)

REPORT RequestId: da9f321f-c5ff-4a6f-a84b-e469cbca197d Duration: 0.61 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 16 MB

Page 15: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

SEAMLESS SCALING

▸ No risk of under- or over provisioning

▸ Short-lived “compute containers”

▸ Isolated from other functions

▸ Resources provided from function configuration

▸ Containers can be reused, but do not depend on it. It’s the suppliers prerogative to create a new one

Page 16: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

STATELESS

▸ No state is stored between invocations

▸ To preserve state, use

▸ a database

▸ the file system

▸ cross-application cache

▸ …

Page 17: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

EASIER

▸ Well …

▸ If you want to :)

Page 18: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

LESS SERVER MANAGEMENT EVENT-DRIVEN

PAY PER EXECUTION SEAMLESS SCALING

STATELESS EASIER

Page 19: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

SUPPLIERSSERVERLESS

Page 20: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

AWS LAMBDA

Page 21: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

IBM BLUEMIX OPENWHISK

Page 22: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

MICROSOFT AZURE CLOUD FUNCTIONS

Page 23: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

GOOGLE CLOUD FUNCTIONS

Page 24: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

AUTH0 WEBTASK

Page 25: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

DEMOCOLLABORATIVE ECONOMY

Page 26: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

YOUR DATA

▸ Use your data

▸ Publish an API

▸ Enrich existing data

Page 27: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

YOUR IDEA

▸ Use someone else's data

▸ Combine data

▸ Use data differently

▸ Creativity adds value

Page 28: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

SERVERLESS ENABLES

EXPERIMENTATION

Page 29: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft
Page 30: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

THE SERVERLESS FRAMEWORK

▸ CLI

▸ Scaffolding

▸ Best practices (grouping of functions)

▸ Lifecycle support (create, deploy, invoke, …)

▸ Soon to be supplier independent

▸ https://serverless.com

Page 31: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

COLLABORATIVE ECONOMY

▸ Code

▸ https://github.com/bart-blommaerts/serverless-demo

▸ IoT

▸ https://github.com/ordina-jworks/lora-iot-demo

Page 32: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

BEST PRACTICESSERVERLESS

Page 33: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

SUPPLIER CHOICE

▸ Integration

▸ Offering

▸ Tooling

▸ Build and deploy

▸ Monitoring

▸ Execution time is limited

▸ SLA?

Page 34: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THE SERVERLESS CLOUD

CODE

▸ Initialize services outside of function

▸ eg. database connection

▸ Limit your function size

▸ Use an external editor

Page 35: the serverless cloud - JAX London · the serverless cloud pay per execution - example (aws) ... the serverless cloud seamless scaling ... aws lambda. ibm bluemix openwhisk. microsoft

THANK YOU

@DAGGIEBE