Slide 1

Slide 1 text

1 INTRODUCTION TO SERVERLESS Based on examples featuring Serena Williams Sara Gerion, Raquel Carvalho, Fernanda Machado

Slide 2

Slide 2 text

2 ▪ Understand what serverless means Goals

Slide 3

Slide 3 text

3 ▪ Understand what serverless means ▪ The pros and cons of serverless Goals

Slide 4

Slide 4 text

4 ▪ Understand what serverless means ▪ The pros and cons of serverless ▪ Use cases for serverless architectures Goals

Slide 5

Slide 5 text

5 ▪ Understand what serverless means ▪ The pros and cons of serverless ▪ Use cases for serverless architectures ▪ Gain insights over serverless AWS services Goals

Slide 6

Slide 6 text

6 ▪ Understand what serverless means ▪ The pros and cons of serverless ▪ Use cases for serverless architectures ▪ Gain insights over serverless AWS services ▪ Learn how to create an API using serverless services Goals

Slide 7

Slide 7 text

7

Slide 8

Slide 8 text

8

Slide 9

Slide 9 text

9 So what is serverless?

Slide 10

Slide 10 text

10 Serverless is a cloud computing execution model

Slide 11

Slide 11 text

11 Infrastructure as a Service

Slide 12

Slide 12 text

12 So if you want to start a business... You now are able to choose between

Slide 13

Slide 13 text

13 On-premises

Slide 14

Slide 14 text

14 Cloud Service Providers

Slide 15

Slide 15 text

15

Slide 16

Slide 16 text

16 AWS region eu-central-1 (Frankfurt) https://infrastructure.aws/

Slide 17

Slide 17 text

17 But hold on. Doesn’t serverless suggest that there are no servers involved?

Slide 18

Slide 18 text

18 The word serverless is “misleading”. There are actual servers powering your services. But you don’t need to care about them.

Slide 19

Slide 19 text

19 ▪ It’s basically a code runner ▪ Your code is a function ▪ Cloud providers take care of almost everything else. You just need to provide the code! ▪ Examples: AWS Lambda, Google Cloud Function, Azure function Function as a Services (FaaS) pattern

Slide 20

Slide 20 text

20 ▪ Lambda - a “code runner” ▪ API Gateway - AWS HTTP proxy ▪ S3 - AWS storage ▪ DynamoDB - AWS NoSQL database ▪ SQS - AWS queueing system ▪ SNS - AWS messenger Notable serverless AWS services

Slide 21

Slide 21 text

21 If they are all serverless, but have different purposes, what do they have in common?

Slide 22

Slide 22 text

22 Pros Cost-effective

Slide 23

Slide 23 text

23 Pros Highly-scalable

Slide 24

Slide 24 text

24 Pros Resilient

Slide 25

Slide 25 text

25 Pros Logs and metrics “for free”

Slide 26

Slide 26 text

26 Cons You pay what you use... So be mindful of the usage

Slide 27

Slide 27 text

27 Cons Hard limitations

Slide 28

Slide 28 text

28 Cons Some tricky implementation details (read the docs!)

Slide 29

Slide 29 text

29 What we will do today? We will build a scalable, resilient web app in very few steps. Using only serverless services.

Slide 30

Slide 30 text

30 What are we going to build?

Slide 31

Slide 31 text

31 ▪ Get your laptop, feel free to use the conference’s WiFi: WiFi name: EWIT2019 WiFi password: wintechseries ▪ Go to: https://github.com/sgdazn/introduction-to-serverless-workshop ▪ Follow the instructions in the readme located in the folder: 01_Console Let’s start!

Slide 32

Slide 32 text

32 Workshop time!

Slide 33

Slide 33 text

33 Let’s recap

Slide 34

Slide 34 text

34 ▪ It is useful to build scalable, resilient services ▪ It’s cost effective (when applied smartly) ▪ It’s faster when you want to focus on the business logic only ▪ AWS takes care of a lot of things, but read the documentation! What did we just learn about serverless?

Slide 35

Slide 35 text

35 ▪ Provisioning (CloudFormation, Terraform) ▪ Deploying (CI/CD pipelines) ▪ Being familiar with other useful services: DynamoDB, S3, SQS, SNS... What is next to learn?

Slide 36

Slide 36 text

36 ▪ AWS documentation https://docs.aws.amazon.com ▪ AWS serverless repositories https://serverlessrepo.aws.amazon.com/applications ▪ Related subreddits https://www.reddit.com/r/aws https://www.reddit.com/r/devops Useful resources

Slide 37

Slide 37 text

37 Thank you