The Serverless Framework
Bringing order to AWS Lambda
What is Lambda?
- Someone else's computer
- Someone else's operating system
- Your code
But Why?
- Shared Responsibility Model
- Infinite automatic scaling
- Cost reduction
- Taking it a step further!
What does it Look Like
exports.index = function(event, context, callback) {
if (isBusinessTime(new Date())) {
callback(null, {
statusCode: '200',
body: JSON.stringify({ message: "It's time for business" }),
headers: { 'Content-Type': 'application/json' }
})
} else {
callback(null, {
statusCode: '200',
body: JSON.stringify({ message: "It's party time" }),
headers: { 'Content-Type': 'application/json' }
})
}
}
function isBusinessTime(now) {
return now.getDay() < 4 && now.getHours() >= 9 && now.getHours() < 17
}
but IT's not without problems
- Debugging
- Deploying
- Tracing
- Freezing and Thawing
WE just need the right tools
Demonstrations
Other Talks
-
Serverless, what is it good for?
- J. Randall Hunt
-
Building with the Serverless Framework
- Austen Collins
- LearnCode.academy
Resources
Try It For Yourself
The Serverless Framework
By Andrew Tomaka
The Serverless Framework
- 1,384