Serverless Architecture

Preview:

Citation preview

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)

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

Faster, faster!

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

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

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

• CRUD

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

API Funnels• Aggregate multiple APIs into one

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

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

Squirrelbin Architecture• Angular SPA• Hosted on S3

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

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

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

Sparta Framework• Serverless for golang

Is Serverless a natural step?

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

Recommended