Top Banner
#WISSENTEILEN Lars Röwekamp | CIO New Technologies | open knowledge GmbH #WISSENTEILEN @_openKnowledge @mobileLarson Serverless Wer braucht schon einen Server?
74

Less Server vs. Serverless?

Jan 22, 2018

Download

Software

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: Less Server vs. Serverless?

#WISSENTEILENLars Röwekamp | CIO New Technologies | open knowledge GmbH

#WISSENTEILEN@_openKnowledge

@mobileLarson

ServerlessWer braucht schon einen Server?

Page 2: Less Server vs. Serverless?

ÜBER OPEN KNOWLEDGEBranchenneutrale Softwareentwicklung und IT-Beratung

#WISSENTEILEN

Page 3: Less Server vs. Serverless?

ÜBER MICH

Wer bin ich - und wenn ja, wie viele?

• CIO New Technologies • Enterprise & Mobile • Autor, Speaker, Coach & Mentor

• Snowboard & MTB Enthusiast• Mehrfacher Vater, einfacher Ehemann

Lars Röwekamp (a.k.a. @mobileLarson)

#WISSENTEILEN

LR

Page 4: Less Server vs. Serverless?

Mein Server und ich ...

Page 5: Less Server vs. Serverless?

Mein Server und ich ...

„The Nightmare“

Page 6: Less Server vs. Serverless?

#WISSENTEILEN

Server Q&A(„Things i should better care about.“)

Page 7: Less Server vs. Serverless?

#WISSENTEILEN

#Servers:#Customer:

#Traffic:#Security:

Quantity? OS? Storage? CPU? Memory?

Start small! Grow fast! Die faster?

Moderate but peeks!

OS? Patches? Access Control?

Page 8: Less Server vs. Serverless?

I had a dream ...

Page 9: Less Server vs. Serverless?

#WISSENTEILEN

#LaborCost:#Risk:

#ResourceCost:#Scaling:

#LeadTime:

No not need to DIY

Don‘t have to care about the technical stack

Don‘t pay idle

Reduce to the max

Right here, right now

Page 10: Less Server vs. Serverless?

„Kein Server ist einfacher zu

verwalten, als kein Server.“

(Werner Vogels, CTO Amazon)

out-of-the-box self-scaling

out-of-the-boxself-scaling

cloud-basedsuper-backend

I had a dream ...

Page 11: Less Server vs. Serverless?

„Kein Server ist einfacher zu

verwalten, als kein Server.“

(Werner Vogels, CTO Amazon)

Page 12: Less Server vs. Serverless?

#WISSENTEILEN

Road toless Server ...

Page 13: Less Server vs. Serverless?

#WISSENTEILEN

Road to less Server

Page 14: Less Server vs. Serverless?

#WISSENTEILEN

Road to less Server

IaaS

Page 15: Less Server vs. Serverless?

#WISSENTEILEN

Road to less Server

IaaSPaaS

Page 16: Less Server vs. Serverless?

#WISSENTEILEN

Road to less Server

PaaSBaaS IaaS

Page 17: Less Server vs. Serverless?

Ain‘t gonna work!

Page 18: Less Server vs. Serverless?

Ain‘t gonna work!

My Business LogicMy Integration Logic

My Event-based Logic

Page 19: Less Server vs. Serverless?

#WISSENTEILEN

Road to less Server

PaaSBaaS IaaS

Page 20: Less Server vs. Serverless?

#WISSENTEILEN

Road to less Server

PaaS IaaS

Page 21: Less Server vs. Serverless?

#WISSENTEILEN

My Logic(a.k.a. Function as a Service)

Page 22: Less Server vs. Serverless?

#WISSENTEILEN

Run Code, not Server!

Page 23: Less Server vs. Serverless?

#WISSENTEILEN

Road to less Server

“Run your code highly-availablein the cloud

in response to eventsand scale without any servers

to manage.“

Page 24: Less Server vs. Serverless?

#WISSENTEILEN

Main Player

AWS Lambda

MicrosoftAzure Functions

OracleProject FN***)

ApacheOpenWhisk**)

Google CloudFunctions*)

Page 25: Less Server vs. Serverless?

#WISSENTEILEN

The Main Player

AWS Lambda(serverless, event-driven compute service)

Page 26: Less Server vs. Serverless?

#WISSENTEILEN

How does it work?

S3 Bucket

DynamoDB

Kinesis

EVENT

EVENT

INVOKE

Stateless Code(a.k.a. AWS Lambda)

Page 27: Less Server vs. Serverless?

#WISSENTEILEN

How does it work?

S3 Bucket

DynamoDB

Kinesis

INVOKE

INVOKE

RETURN

Stateless Code(Node, Python, Java, C#)

Page 28: Less Server vs. Serverless?

#WISSENTEILEN

Subscribe to ...

Amazon S3

Amazon DynamoDB

Amazon Kinesis

AWS CloudFormation

AWS CloudTrail

Amazon CloudWatch

Amazon SNS

AmazonSES

AmazonAPI GatewayAmazon

Cognito

AWSIoT

AmazonAlexa

CronEvents

DATA STORES ENDPOINTS

REPOSITORIES EVENT/MESSAGE SERVICES

Amazon Config

Page 29: Less Server vs. Serverless?

Anatomy ofa Lambda

Function

Page 30: Less Server vs. Serverless?

#WISSENTEILEN

Anatomy

Lambda Function

Page 31: Less Server vs. Serverless?

#WISSENTEILEN

Anatomy

Handler Function

Lambda Function

</>

„...“

Event Object

Context Object

...{

Page 32: Less Server vs. Serverless?

#WISSENTEILEN

Anatomy

Handler Function

Lambda Function

</>

„...“

Event Object

Context Object

...{

Page 33: Less Server vs. Serverless?

#WISSENTEILEN

Anatomy

Handler Function

Lambda Function

</>

„...“

Event Object

Context Object

...{IAM Role

Page 34: Less Server vs. Serverless?

#WISSENTEILEN

Anatomy

Handler Function

Lambda Function

</>

„...“

Event Object

Context Object

...{IAM Role

Return Object*

Page 35: Less Server vs. Serverless?

#WISSENTEILEN

Anatomy

Lambda Function

1. Number of Calls**2. Memory Usage***{IAM Role

Return Object*(**first 1 million for free, ***first 400.000 sec free for 1 GB memory)

Page 36: Less Server vs. Serverless?

#WISSENTEILEN

SCENARIOS

Page 37: Less Server vs. Serverless?

#WISSENTEILEN

Scenarios

Thumbnail Creation(Data & File Processing)

Page 38: Less Server vs. Serverless?

#WISSENTEILEN

Scenarios

Page 39: Less Server vs. Serverless?

#WISSENTEILEN

Scenarios

Trend & Fault Detection(Event Streaming)

Page 40: Less Server vs. Serverless?

#WISSENTEILEN

Scenarios

Page 41: Less Server vs. Serverless?

#WISSENTEILEN

Scenarios

Web Application(Custom Events)

Page 42: Less Server vs. Serverless?

#WISSENTEILEN

Scenarios

Page 43: Less Server vs. Serverless?

#WISSENTEILEN

FaaS@work

Page 44: Less Server vs. Serverless?

/* super advanced lambda function */public class HelloWorld {

public String handle(String name, Context ctx) {

return “Hello“ + name;}

}

#WISSENTEILEN

FaaS @work

FaaS @Work: Hello World

Page 45: Less Server vs. Serverless?

#WISSENTEILEN

FaaS @work

Page 46: Less Server vs. Serverless?

#WISSENTEILEN

FaaS @work

Page 47: Less Server vs. Serverless?

#WISSENTEILEN

FaaS @work

Page 48: Less Server vs. Serverless?

#WISSENTEILEN

FaaS @work

FaaS @Work: Image Gallery

Page 49: Less Server vs. Serverless?

#WISSENTEILEN

FaaS @work

FaaS @Work: Image Gallery

Page 50: Less Server vs. Serverless?

#WISSENTEILEN

FaaS @work

Page 51: Less Server vs. Serverless?

#WISSENTEILEN

FaaS @work

Page 52: Less Server vs. Serverless?

#WISSENTEILEN

FaaS @work

Page 53: Less Server vs. Serverless?

#WISSENTEILEN

FaaS @work

Page 54: Less Server vs. Serverless?

#WISSENTEILEN

FaaS @work

Page 55: Less Server vs. Serverless?

#WISSENTEILEN

AWSOME(Aber was ist mit ...?)

Page 56: Less Server vs. Serverless?

#WISSENTEILEN

#Versioning(Version vs. Alias)

Page 57: Less Server vs. Serverless?

#WISSENTEILEN

#Security(Push vs. Pull)

Page 58: Less Server vs. Serverless?

#WISSENTEILEN

#Concurrency(max. 200 parallel, max 300 sec)

Page 59: Less Server vs. Serverless?

#WISSENTEILEN

#Error(Timeout, Retry, Log, DLQ)

Page 60: Less Server vs. Serverless?

#WISSENTEILEN

#Tracing(Wer, wann, was, wie?)

Page 61: Less Server vs. Serverless?

#WISSENTEILEN

#Monitoring(Logs & Metriken)

Page 62: Less Server vs. Serverless?

#WISSENTEILEN

#NoOps(Ok, sagen wir mal „less Ops“!)

Page 63: Less Server vs. Serverless?

#WISSENTEILEN

#VendorLock(Adrian sagt: „2 VL << DIY“)*

Page 64: Less Server vs. Serverless?

#WISSENTEILEN

#Pricing(„Don‘t pay idle.“)

Page 65: Less Server vs. Serverless?

#WISSENTEILEN

#Runtime(„Serverless“ oder „Less Server“?)

Page 66: Less Server vs. Serverless?

#WISSENTEILEN

#Deployment(DIY vs. Tooling)

Page 67: Less Server vs. Serverless?

#WISSENTEILEN

#TESTING(Stimmt, da war ja noch was ...)

Page 68: Less Server vs. Serverless?

#WISSENTEILEN

Page 69: Less Server vs. Serverless?

#WISSENTEILEN

Run Code, not Server!

Page 70: Less Server vs. Serverless?

#WISSENTEILEN

Don‘tpay Idle!

Page 71: Less Server vs. Serverless?

No servers, no stress!

Page 72: Less Server vs. Serverless?

? ? ?FRAGEN

#WISSENTEILEN

Page 73: Less Server vs. Serverless?

Kontakt

LARS RÖWEKAMPCIO NEW TECHNOLOGIES

[email protected]+49 (0)441 4082 – 101

@mobileLarson@_openknowledge

OFFENKUNDIGGUT

#WISSENTEILEN

Page 74: Less Server vs. Serverless?

Bildnachweise

#1: © taw4 – shutterstock.com#4: © RichVintage – istockphoto.com#10: © foxaon1978 – shutterstock.com#11: © Guido van Nispen – wikipedia.com#14: © vasakna – fotolia.com#30: © pathdoc - fotolia.com#67: © tomer_turjeman – fotolia.com

All other pictures inside this presentation orginate from pixabay.com.

#WISSENTEILEN