+ All Categories
Home > Technology > Serverless - Lunch&Learn CleverToday - Mars 2017

Serverless - Lunch&Learn CleverToday - Mars 2017

Date post: 11-Apr-2017
Category:
Upload: brice-argenson
View: 76 times
Download: 0 times
Share this document with a friend
34
CleverToday Serverless Architecture
Transcript
Page 1: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Serverless Architecture

Page 2: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Page 3: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Cloud Computing - Reminders

Page 4: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

What is the Cloud?

“Cloud computing is on-demand access to virtualized IT resources that are housed outside of your own data center, shared by others, simple to use, paid for via

subscription, and accessed over the Web.”

- John Foley, Information Week IaaS

Page 5: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

What is the Cloud?

“Cloud computing is on-demand access to virtualized IT resources that are housed outside of your own data center, shared by others, simple to use, paid for via

subscription, and accessed over the Web.”

- John Foley, Information Week IaaS

Page 6: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Different types of Cloud

Page 7: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Serverless

Page 8: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Hot topic

Page 9: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

What is Serverless?

• Two different but overlapping areas:

• Backend as a Service (BaaS)

• Function as a Service (FaaS)

Page 10: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Backend as a Service

• 3rd party applications / services in the cloud to manage server-side logic and state

• Application using them were the first called Serverless

• Rich client applications (SPA or mobile apps)

Page 11: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

(Mobile) Backend as a Service: Example

Page 12: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Backend as a Service: Example

Page 13: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Functions as a Service• Server-side logic written by the application developer

• Run in stateless compute containers

• Event-triggered

• Ephemeral (one or more invocation)

• Fully managed by a 3rd party

Page 14: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Functions as a Service: Example

https://aws.amazon.com/lambda/

Page 15: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Functions as a Service: Example

https://aws.amazon.com/lambda/

Page 16: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Functions as a Service: Example

https://aws.amazon.com/lambda/

Page 17: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Language and Framework agnostic

Page 18: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

FaaS vs PaaS

Page 19: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

FaaS vs PaaS

Page 20: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

FaaS pricing

AWS Lambda Google Functions Azure Functions

Requests $0.20 / million requests $0.40 / million requests $0.20 / million requests

Duration $0.00001667 / GB-second $0.0000025 / GB-second$0.0000100 / GHz-second $0.000016 / GB-second

Free Tier 1 million requests / month400,000 GB-s / month

2 million requests / month400,000 GB-s / month200,000 GHz-s / month

1 million requests / month400,000 GB-s / month

Page 21: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Traditional 3-tier client-orientedarchitecture

Client(Browser) PetStore

Server

Database

Page 22: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Traditional 3-tier client-orientedarchitecture

Client(Browser)

PetStoreServer

Database

Page 23: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Serverless Architecture

API Gateway

Purchase Function

Search Function

Client(Browser)

Authorization Service(Auth0)

Product Database(Firebase)

Purchase Database(Fauna)

Page 24: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

#NoOps?

• Serverless might mean ‘No internal Sys Admin’

• But ops are still recommended for:• Monitoring• Deployments• Security• And everything they never have time to focus on :-)

Page 25: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Benefits

Page 26: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Reduced operational cost• Economy of scale

• BaaS:• Less development• Less infrastructure• Less ops

• FaaS:• Only pay for the compute that you need!

Page 27: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Easier Operational Management

• Scaling benefits

• Reduced packaging and deployment complexity

• Time to market / experimentation

Page 28: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Drawbacks

Page 29: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

The inherent ones• Vendor control

• Multitenancy problems

• Vendor lock-in

• Security concerns

• FaaS are stateless

Page 30: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

The implementation ones

• Execution duration

• Testing

• Monitoring / Debugging

• Lack of tools and experience

Page 31: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Serverless Framework• Command-line tool providing:

• Scaffolding

• Workflow automation

• Plugin system

• Easy deployment to most of the FaaS services

Page 32: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Conclusion

Page 33: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Conclusion• Serverless systems are still in their infancy

• Push a better thinking of the architecture• Micro-services!

• Reduce time-to-market

• Ready for production?

• Apache OpenWhisk (by IBM)!

Page 34: Serverless - Lunch&Learn CleverToday - Mars 2017

CleverToday

Thank you!


Recommended