KEMBAR78
Serverless Framework Intro | PDF
Serverless Framework
Why?
• Execute Code On Demand
• Reducing Administration (maintaining Servers)
• Event-Driven
• Pay-Per-Execution
• Microservices
• Stateless
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?
• ...
History
Environments
• Node.js
• Python
• Java / Scala
• Go?
• Scala?
# 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
Credentials 😞
Events
• HTTP
• S3
• Schedule
• Streams
• SNS
Demo
Features
• Production Ready
• Offline Setup with mocked data for UI Development
• many much more
Node

Serverless

GraphQL-js

React

Recompose

CSSModules

Webpack

Jest
Fin

Serverless Framework Intro