the rise of serverless architectures

25
The Rise of Serverless Architectures Photo by Shane Perry Icon by Serverless

Upload: benny-bauer

Post on 16-Apr-2017

322 views

Category:

Software


2 download

TRANSCRIPT

Page 3: The Rise of Serverless Architectures

I am Benny BauerEx-

Cloud Architect & Serverless Enthusiast

Find me at @benikbauer

Hello!

Page 4: The Rise of Serverless Architectures

Devise technical solutionsfor business needs.

Business

Technical Solution

Architect’s Role

Page 5: The Rise of Serverless Architectures

Our Needs

Technology

Page 7: The Rise of Serverless Architectures

EvolutionGenesis Custom Built Product (+ rental) Commodity (+ utility)

Cloud evolution as an example

Data center Hosting

Virtualization IaaS

Icons made by freepik from www.flaticon.com & unlimicon from Noun Project

On Premise

Compute

Platform PaaS Serverless

Page 8: The Rise of Serverless Architectures

What is Serverless

FaaS BaaS B2D SaaS

Page 9: The Rise of Serverless Architectures

What is FaaS

Fully-managed compute

Provisioning, patching, scaling, monitoring, logging are provided out-of-the- box

Deploy your code

Just package and upload the code

Pay for actual usage

Getting charged only upon code execution, per 100ms

==> 100% utilization

Page 10: The Rise of Serverless Architectures

How it works

Deploy your code

Define triggers

Code executes & auto-scales

❏ HTTP request❏ Storage❏ DB❏ Schedule

❏ Messaging❏ Monitoring❏ Build❏ More...

Page 11: The Rise of Serverless Architectures

◉ REST API◉ Bots◉ File processing & Data ingestion◉ Incidents handling (Monitoring events)◉ IoT◉ Operations, monitoring, CI, health checks,

tests, scheduled jobs◉ and more...

Use cases

Page 12: The Rise of Serverless Architectures

Example: Bot

Page 13: The Rise of Serverless Architectures

Example: Bot

Bot icon made by Arsenty from Noun Project

DBAPI Gateway

FaaS A

Storage

notification file uploaded

event

/cover?t=hype

FaaS B

Page 14: The Rise of Serverless Architectures

Things to be aware of

Stateless

Instances are ephemeral.Store state on client-side, cache or db.

Cold start

Latency (< 2 sec) when container is cold (upon first run or inactivity).

Vendor lock-in

Integrations with other services are the real bait.

Granularity

Unit of deployment is nanoservice/function.

Costs

Not cost-effective from a certain threshold.

Limitations

Execution time is 5 min. Concurrent instances, payload, disk are limited.

Page 15: The Rise of Serverless Architectures

EcosystemFrameworks & Tools

Page 16: The Rise of Serverless Architectures

Frameworks

Chalise

Page 17: The Rise of Serverless Architectures

Tools

Page 18: The Rise of Serverless Architectures

The FaaS effectNew emerging practices

Photo by TimOve (https://flic.kr/p/4aTMMx)

Page 20: The Rise of Serverless Architectures

Business model

◉ API Marketplace

Page 21: The Rise of Serverless Architectures

Architecture

◉ More distributed and pluggable ◉ More event-driven◉ Frameworks are changing

Page 22: The Rise of Serverless Architectures

Operations

DevOps is changing

◉ Less about provisioning, capacity planning◉ More about distributed systems:

○ Monitoring & visibility ○ Debuggability○ Graceful degradation & Resiliency○ CI/CD○ Costs optimisations

Page 23: The Rise of Serverless Architectures

SummaryWhat was it all about?

Page 24: The Rise of Serverless Architectures

Takeaways

◉ FaaS is the latest evolution of cloud ◉ New emerging practices◉ How can Serverless help deliver my business

needs?