Slide 1

Slide 1 text

In the land of Serverless, who uses Zappa is king!

Slide 2

Slide 2 text

@jonatasbaldin Developer at Cheesecake Labs

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

BaaS Backend as a Service FaaS Function as a Service

Slide 6

Slide 6 text

Serverless Principles

Slide 7

Slide 7 text

Single Purpose Functions

Slide 8

Slide 8 text

Event-Driven Architectures

Slide 9

Slide 9 text

Abstracted Servers

Slide 10

Slide 10 text

Ephemeral Environments

Slide 11

Slide 11 text

Pay by Execution

Slide 12

Slide 12 text

Builtin Scalability

Slide 13

Slide 13 text

Commercial Providers

Slide 14

Slide 14 text

Open source Providers

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Use Cases Web Backends Bots Data Processing IoT

Slide 20

Slide 20 text

Benefits COST

Slide 21

Slide 21 text

Benefits COST CO ST

Slide 22

Slide 22 text

Benefits COST CO ST CO ST

Slide 23

Slide 23 text

Benefits COST CO ST CO ST COST

Slide 24

Slide 24 text

Benefits COST CO ST CO ST COST COST

Slide 25

Slide 25 text

Benefits COST CO ST CO ST COST COST COST

Slide 26

Slide 26 text

Benefits COST CO ST CO ST COST COST COST COST

Slide 27

Slide 27 text

* First 1 million requests per month are free * $0.20 per 1 million requests thereafter ($0.0000002 per request)

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

Benefits Infinite Scale Package and Deploy Time to Market Operational Management*

Slide 30

Slide 30 text

Do you mean... #NoOps?

Slide 31

Slide 31 text

Every time you say NoOps, a sysadmin dies.

Slide 32

Slide 32 text

Serverless doesn't remove Ops complexity, it increases it exponentially

Slide 33

Slide 33 text

Enough concepts, let's talk about tooling

Slide 34

Slide 34 text

Serverless Frameworks* It's been two years since the first one and we already have like 20+ frameworks

Slide 35

Slide 35 text

Serverless Frameworks* It's been two years since the first one and we already have like 20+ frameworks

Slide 36

Slide 36 text

Serverless Frameworks* It's been two years since the first one and we already have like 20+ frameworks WHY?

Slide 37

Slide 37 text

Everything is new It's not easy Lot of moving pieces No specs whatsoever

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

FEATURES!

Slide 42

Slide 42 text

Python WSGI Applications Great for micro AND macro services AWS Lambda + AWS API Gateway AWS Event Sources Cron-like Events Logs Rollback

Slide 43

Slide 43 text

Environment variables from S3 Multiple stage deployments Django Management Commands (yeah!) Keep Warm Free SSL Globally Distributed Availability

Slide 44

Slide 44 text

$ pip install zappa

Slide 45

Slide 45 text

$ zappa init

Slide 46

Slide 46 text

# zappa_settings.json { "dev": { "aws_region": "us-east-1", "django_settings": "hello.settings", "profile_name": "default", "project_name": "hello", "runtime": "python3.6", "s3_bucket": "zappa-huyg6op0s" } }

Slide 47

Slide 47 text

$ zappa deploy

Slide 48

Slide 48 text

# Deployment complete!:

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

$ zappa update dev

Slide 54

Slide 54 text

$ zappa rollback dev -n 2

Slide 55

Slide 55 text

$ zappa tail dev

Slide 56

Slide 56 text

$ zappa invoke dev "print('PyConZA')" --raw

Slide 57

Slide 57 text

$ zappa manage dev migrate

Slide 58

Slide 58 text

# zappa_settings.json { "dev": { ... }, "staging": { ... }, "production": { ... } }

Slide 59

Slide 59 text

$ zappa deploy staging

Slide 60

Slide 60 text

And much more! https://github.com/Miserlou/Zappa

Slide 61

Slide 61 text

Drawbacks Vendor control/lock-in* No server optimizations No in-server state

Slide 62

Slide 62 text

Opportunities Tooling Open source projects Learning and teaching *LOTS OF* improvements

Slide 63

Slide 63 text

And the question that everyone is wondering....

Slide 64

Slide 64 text

Is it production ready?

Slide 65

Slide 65 text

YES! but try if first

Slide 66

Slide 66 text

Serverless Weekly http://eepurl.com/cUU8sD

Slide 67

Slide 67 text

In the land of Serverless, who uses Zappa is king! @jonatasbaldin

Slide 68

Slide 68 text

Obrigado!