The Serverless Framework

Bringing order to AWS Lambda

What is Lambda?

  • Someone else's computer
  • Someone else's operating system
  • Your code

But Why?

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

Resources

Try It For Yourself

The Serverless Framework

By Andrew Tomaka

The Serverless Framework

  • 1,255