Slide 1

Slide 1 text

Building Serverless Applications with NodeJS with @DavidWells

Slide 2

Slide 2 text

I'm @DavidWells FullStack JavaScript Developer @ previously UX/UI @ React Fanatic

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

AWS Lambda

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

How did we get here 1. Build and maintain your own machines 2. Buy space in someone else's server farm 3. Run virtual machines in the cloud 4. Run containers in the cloud 5. Go serverless

Slide 7

Slide 7 text

Serverless?

Slide 8

Slide 8 text

+

Slide 9

Slide 9 text

Serverless auto-scaling focus on your application not infrastructure

Slide 10

Slide 10 text

Waht?

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

$0.20 per 1 million requests ($0.0000002 per request) First 1 million requests free

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

Your code + + = Infinitely scalable Backend APIs CLI

Slide 17

Slide 17 text

"My company moved the work of 40 dedicated servers onto Lambda and in doing so decimated our costs. Paying for 1500 cores (our current AWS limit) in 100ms increments has been a game changer" - http://bit.ly/2mcI4C0 "AWS Lambda: 9 million API calls for < $1" - http://bit.ly/2nfCsYR "Oh, and if you are curious about how much this set-up costs per month? It is such an embarrassingly low number, that we hesitate to share it. Let’s just disclose that it is not enough to buy the two of us lunch. Really." - http://bit.ly/2nfAhEM instant.cm

Slide 18

Slide 18 text

use cases

Slide 19

Slide 19 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 Use Cases github.com/serverless/examples

Slide 20

Slide 20 text

EVERYTHING*

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

UI Backend for UI

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Where to run What code to run When to run serverless.yml

Slide 25

Slide 25 text

saveUser function in handler.js

Slide 26

Slide 26 text

Frontend Backend

Slide 27

Slide 27 text

serverless-stack.com

Slide 28

Slide 28 text

serverless.com/framework/status

Slide 29

Slide 29 text

API for UI

Slide 30

Slide 30 text

Lets see it in action

Slide 31

Slide 31 text

https://github.com/serverless/examples

Slide 32

Slide 32 text

github.com/serverless/site serverless.com

Slide 33

Slide 33 text

We are here to help • Come visit our table or ping us @DavidWells or @AustenCollens on the reactathon slack channel • Come visit for a free serverless t-shirt or stickers! • ... can I haz visit please?

Slide 34

Slide 34 text

Prize • Best use of serverless in project $700 • Bonus points for doing react SSR with a lambda function