serverless architecture

20
Serverless Architecture Saul Caganoff With attribution to Mark Boyd and Mehdi Medjaoui https:// medium.com /@APIdays/mapping-the-api-serverless-market-landscape-1d27d72ffc8d#.3g5xy xtco

Upload: saul-caganoff

Post on 16-Apr-2017

645 views

Category:

Technology


1 download

TRANSCRIPT

Page 2: Serverless Architecture

Why Serverless?• DevOps is too hard• developers don’t want to have to do the “ops” bit ==> NoOps

• Lean Startups• want to prove a business idea quickly & cheaply

• Because you can• new serverless offerings in the market from big platforms to small startups

• Scale and Cost• Autoscaling built in• Pay per call (never pay for idle)

Page 3: Serverless Architecture

Global Drivers for Serverless• Cloud - is now mainstream, easy and cheap• Microservices - gaining adoption• Digital Business - technicians and business working together in

integrated teams to digitise their business and deliver value

Page 4: Serverless Architecture

Faster, faster!

Page 5: Serverless Architecture

API Serverless Products• Design an API• Attach to cloud-based data store• Add business logic• Publish• Manage consumers

https://medium.com/@APIdays/mapping-the-api-serverless-market-landscape-1d27d72ffc8d#.3g5xyxtco

Page 6: Serverless Architecture

E.g. Restlet• Simple BaaS• Create a Datamodel• It will generate a REST-ish API for you• YAML, JSON, XML

• Swagger documentation• SDKs• shell, node, java, python, php, objective-c, go

Page 7: Serverless Architecture
Page 8: Serverless Architecture
Page 9: Serverless Architecture

API CRUD Makers• Transform data sets into APIs• Structured• Unstructured

• CRUD

https://medium.com/@APIdays/mapping-the-api-serverless-market-landscape-1d27d72ffc8d#.3g5xyxtco

Page 10: Serverless Architecture

API Funnels• Aggregate multiple APIs into one

https://medium.com/@APIdays/mapping-the-api-serverless-market-landscape-1d27d72ffc8d#.3g5xyxtco

Page 11: Serverless Architecture

Creation tools and frameworks• Create and link APIs in the cloud• Serverless Applications

https://medium.com/@APIdays/mapping-the-api-serverless-market-landscape-1d27d72ffc8d#.3g5xyxtco

Page 12: Serverless Architecture

Squirrelbin Architecture• Angular SPA• Hosted on S3

• REST API• CRUD Lambda Functions• Storage in dynamoDB• Execute acorns in Lambda

Page 13: Serverless Architecture

Zombie Survivor Chat• Decoupling

• separate lambda functions for search, chat and activity services

• Separate data stores• dynamoDB

• Data transformations in API Gateway• Early transformation -> common back-end logic

• Security – service isolation & least privilege• Dev Lifecycle

• Separate environments• Mocks for early APIs

• CloudFormation to stitch it all together

Page 14: Serverless Architecture

Serverless Framework• Node.js application• Generates CloudFormation templates• You author a REST-ish API and associated functions• It deploys to AWS• Configures Lambda Functions• Configures API Gateway endpoints

Page 15: Serverless Architecture

Sparta Framework• Serverless for golang

Page 16: Serverless Architecture

Is Serverless a natural step?

Page 17: Serverless Architecture

What is serverless really good for?• Proof of concept• Lean startup• Event-driven applications• IoT• Data analytics

Page 18: Serverless Architecture
Page 19: Serverless Architecture