Serverless Framework Intro

13
Serverless Framework

Transcript of Serverless Framework Intro

Page 1: Serverless Framework Intro

Serverless Framework

Page 2: Serverless Framework Intro

Why?• Execute Code On Demand

• Reducing Administration (maintaining Servers)

• Event-Driven

• Pay-Per-Execution

• Microservices

• Stateless

Page 3: Serverless Framework Intro

Why a build tool?• Easy way to setup Lambdas?

• How to invoke it via HTTP?

• Manage multiple Lambdas?

• Manage related infrastructure?

• Multiple regions / stages?

• Code sharing between Lambdas?

• Deploy to a different cloud provider?

• ...

Page 4: Serverless Framework Intro

History

Page 5: Serverless Framework Intro

Environments• Node.js

• Python

• Java / Scala

• Go?

• Scala?

Page 6: Serverless Framework Intro

# serverless.yml service: users

provider: name: aws runtime: nodejs4.3

functions: resizePicture: handler: users.resize events: - s3: picture reminder: handler: users.reminder events: - schedule: rate(2 hours) create: handler: users.create events: - http: POST users

Page 7: Serverless Framework Intro
Page 8: Serverless Framework Intro

Credentials 😞

Page 9: Serverless Framework Intro

Events• HTTP

• S3

• Schedule

• Streams

• SNS

Page 10: Serverless Framework Intro

Demo

Page 11: Serverless Framework Intro
Page 12: Serverless Framework Intro

Features• Production Ready

• Offline Setup with mocked data for UI Development

• many much more

NodeServerlessGraphQL-jsReactRecomposeCSSModulesWebpackJest

Page 13: Serverless Framework Intro

Fin