Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

no-side javascript and the Serverless Revolution Ryan H Lewis @ryanmurakami

Slide 3

Slide 3 text

Sr. Engineer Instructor Executive Thingdoer ryanhlewis.com

Slide 4

Slide 4 text

The year is 2017 Planet Earth

Slide 5

Slide 5 text

Fulfilling Atwood’s Law, JavaScript engineers rule the world, solving every problem with closures.

Slide 6

Slide 6 text

Two factions fight for control over the sacred text, ECMA-262.

Slide 7

Slide 7 text

The Client-Side JavaScripters.

Slide 8

Slide 8 text

The Server-Side JavaScripters.

Slide 9

Slide 9 text

Both sides live in the hugely popular Cloud Stacks, oversized high-rises, central to the Web.

Slide 10

Slide 10 text

For years, the two groups struggled for dominance in the Cloud Stacks, but now…

Slide 11

Slide 11 text

… a new paradigm has unseated both for the true C.E.O. position, Serverless.

Slide 12

Slide 12 text

None of the JavaScripters could withstand the overwhelming presence of Serverless.

Slide 13

Slide 13 text

Therefore, a new type of JavaScripter has emerged that runs circles around Serverless…

Slide 14

Slide 14 text

The No-Side JavaScripters.

Slide 15

Slide 15 text

The Serverless Revolution

Slide 16

Slide 16 text

First there was OnPrem You own the hardware Physically Managed Servers Responsible for all costs

Slide 17

Slide 17 text

Then there was the Cloud Virtualized hardware Server application management Pay-as-you-go

Slide 18

Slide 18 text

Now there is Serverless Zero Infrastructure Configuration Just run your code Pay only when code runs

Slide 19

Slide 19 text

cloud provider How do Serverless functions work? your function event event

Slide 20

Slide 20 text

Serverless is… Simple Empowering Event-Driven

Slide 21

Slide 21 text

serverless javascript is perfect for is perfect for serverless

Slide 22

Slide 22 text

JavaScript + Serverless = No-Side JavaScript

Slide 23

Slide 23 text

The Principles of No-Side JavaScript

Slide 24

Slide 24 text

Principle 1 Forget what you know

Slide 25

Slide 25 text

P1: Forget what you know No http server No state No long-running processes

Slide 26

Slide 26 text

Principle 2 One Function, One Purpose

Slide 27

Slide 27 text

P2: One Function, One Purpose Follow SRP Don’t build a monolith Track invocation time

Slide 28

Slide 28 text

Principle 3 Think Distributed

Slide 29

Slide 29 text

Services are your friend More FUNctions Keep it practical P3: Think Distributed

Slide 30

Slide 30 text

Principle 4 Read but don’t Write

Slide 31

Slide 31 text

Read-Only File System Cache + Database Static Storage + CDN P4: Read but don’t Write

Slide 32

Slide 32 text

Principle 5 Know your Limits

Slide 33

Slide 33 text

Upload + Function size Concurrent Invocations Timeouts + Resources P5: Know your Limits

Slide 34

Slide 34 text

Principle 6 Static Version

Slide 35

Slide 35 text

Stable Build Target Not Bleeding Edge Slow to Update Patches P6: Static Version

Slide 36

Slide 36 text

How to Serverless?

Slide 37

Slide 37 text

Serverless Concerns Local Development Deployment Resource Creation

Slide 38

Slide 38 text

the framework *

Slide 39

Slide 39 text

Serverless Framework Configured deployment Simple CLI commands Robust plugin architecture

Slide 40

Slide 40 text

your code serverless.yml lambda api gateway s3 bucket dynamodb table

Slide 41

Slide 41 text

Cross-Provider AWS Azure Google Cloud Platform

Slide 42

Slide 42 text

Getting Started $ npm i -g serverless $ serverless create —template aws-nodejs $ serverless deploy

Slide 43

Slide 43 text

Related Links www.se rverl ess.com Serverless Framework No-Side JavaScript www.n osi dejs.co m

Slide 44

Slide 44 text

thanks! see me for free stickers! Ryan H Lewis @ryanmurakami check me out on youtube