Slide 1

Slide 1 text

Building Serverless Applications with NodeJS with @DavidWells

Slide 2

Slide 2 text

I'm @DavidWells FullStack JavaScript Developer serverless.com

Slide 3

Slide 3 text

Agenda • Overview of Serverless Architectures • Use Cases • Real World Examples • Demo(s) • Q & A

Slide 4

Slide 4 text

Serverwhat?

Slide 5

Slide 5 text

Serverless

Slide 6

Slide 6 text

No Servers?

Slide 7

Slide 7 text

AWS Lambda IBM OpenWhisk Microsoft Azure Functions Google Cloud Functions

Slide 8

Slide 8 text

How did we get here?

Slide 9

Slide 9 text

Sam Kroonenburg & Peter Sbarski
 vimeo.com/182082411

Slide 10

Slide 10 text

use cases

Slide 11

Slide 11 text

Everything

Slide 12

Slide 12 text

Everything*

Slide 13

Slide 13 text

• DevOps/Infrastructure Automation • Auditing resources for security • Infrastructure events • S3 - new files, updated files etc • DynamoDB - new items in DB • Alexa skills • IoT events • Bots (Chat/Voice) • Web + Mobile backend APIs • Form processing • Image processing • Web scraping / testing • Running binaries • Serving HTML / dynamic binaries • Webhook listeners • Cron jobs

Slide 14

Slide 14 text

What can't serverless do? • Processes running longer than 5 minutes

Slide 15

Slide 15 text

Some Examples

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

serverless.com/blog/building-a-serverless-screenshot-service-with-lambda

Slide 18

Slide 18 text

• Static Site built with phenomic.io served up from a CDN • React SPA experience on load • Functions for: • Form processing • 404 tracking/Analytics • Protected API calls for authed users • Serving up dynamic routes HTML AKA will scale without living a finger

Slide 19

Slide 19 text

Protect API Example auth0-serverless-protected-routes-demo.surge.sh

Slide 20

Slide 20 text

github.com/serverless/examples

Slide 21

Slide 21 text

Finding More Use Cases and Examples

Slide 22

Slide 22 text

• Nordstrom • Coca-Cola • Autodesk • Angie’s List • Vevo • Booz Allen Hamilton • NY Life Insurance • Australian Government • LendingTree • Amazon • Vice • Accenture • And more Enterprise Users Nordstrom - is a framework contributor and user. They have 200 Lambda functions in production and do 100 million invocations daily. Use-Cases: Web back-ends, DevOps automation & streaming data processing. Coca Cola - is a framework contributor and user. Has a mission to do all of its 200+ marketing projects a year as “serverless” projects with the Framework. Use-Cases: Web and mobile back-ends. “The Serverless Framework is a core component of The Coca-Cola Company's initiative to reduce IT operational costs and deploy services faster.” - Patrick Brandt, Solutions Architect, Coca-Cola

Slide 23

Slide 23 text

Serverless State of the union re:Invent 2016 https://www.youtube.com/watch?v=AcGv3qUrRC4

Slide 24

Slide 24 text

Enterprise Examples • Accenture (and other agencies) using it to build large backends that can be handed over to the client ready-to-scale • Coca Cola using it to build dozens of marketing sites that handle very spiky traffic • Survata is using it to process hundreds of millions of events and drop cookies • Nordstrom: serverless with artillery and you get serverless-artillery for instant, cheap, and easy performance testing at scale. • Netflix is using for parrallel processing for encoding media files and for security/auditing • A cloud guru: serverless driven training site.

Slide 25

Slide 25 text

Scope the github status board

Slide 26

Slide 26 text

Github webhook listener

Slide 27

Slide 27 text

API for UI

Slide 28

Slide 28 text

Lets deploy an infinitely scalable API endpoint Shall we?

Slide 29

Slide 29 text

Where to start?

Slide 30

Slide 30 text

Where to start? • serverless.com/framework/docs • github.com/serverless/examples • github.com/serverless/scope • github.com/serverless/serverless • gitter.im/serverless/serverless • forum.serverless.com

Slide 31

Slide 31 text

Docs! • serverless.com/framework/docs

Slide 32

Slide 32 text

• serverless.com/framework/docs Docs!

Slide 33

Slide 33 text

Question Time