Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Full Stack Serverless Applications @ MidwestJS

Full Stack Serverless Applications @ MidwestJS

Tools like Amazon's Lambda and API Gateway are allowing us to create "serverless" systems. Massive on demand scalability, and no servers to worry about. At Bustle we are taking full advantage of this with our new infrastructure. On the backend, authorization, server side rendering of javascript, database creates/updates, and search indexing are all handled by AWS Lambda. On the front end we are serving single page javascript applications, APIs, and static content all through API Gateway. Bringing these two technologies together has given us a truly instant-on platform without servers. And the best part? It is costing orders of magnitude less than our old EC2 based system. I'll walk attendees through our entire system so they can use some of these tools themselves. I'll also cover some common mistakes that are easy to make. Lastly, I'll talk about a few open source tools making it even easier to build these types of systems.

Presented on 8/12 at MidwestJS in Minneapolis, MN

Steve Faulkner

August 15, 2016
Tweet

More Decks by Steve Faulkner

Other Decks in Programming

Transcript

  1. The people who are serving websites on Lambda or something

    are not only doing it wrong, they are wasting money while locking themselves in to an architecture that doesn't fit their app - @scrollaway on HN
  2. ops

  3. scale scale scale scale scale scale scale scale scale scale

    scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale scale
  4. const express = require(‘express’) const fn = require(./lambda-fn/) const app

    = express() app.get('/', (req, res) => { fn.handler(null, null, (err, result) => { res.json(result) }) }); app.listen(3000)
  5. ssl