intro to serverless aws web apps

29
“Serverless” AWS Web pps Serverless computing lets you build highly available and cost-effective applications that scale automatically - without having to manage servers.

Upload: kyle-mckee

Post on 12-Apr-2017

36 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Intro to Serverless AWS Web Apps

“Serverless” AWS Web pps

Serverless computing lets you build highly available and cost-effective applications that scale

automatically - without having to manage servers.

Page 2: Intro to Serverless AWS Web Apps

“Serverless” AWS Web pps

Serverless computing lets you build highly available and cost-effective applications that scale

automatically - without having to manage servers.

Page 3: Intro to Serverless AWS Web Apps

“Serverless” AWS Web pps

Serverless computing lets you build highly available and cost-effective applications that scale

automatically - without having to manage servers.

Page 4: Intro to Serverless AWS Web Apps

“Serverless” AWS Web pps

Serverless computing lets you build highly available and cost-effective applications that scale

automatically - without having to manage servers.

Page 5: Intro to Serverless AWS Web Apps

“Serverless” AWS Web pps

Serverless computing lets you build highly available and cost-effective applications that scale

automatically - without having to manage servers.

💯🔥

Page 6: Intro to Serverless AWS Web Apps
Page 7: Intro to Serverless AWS Web Apps
Page 8: Intro to Serverless AWS Web Apps

What’s in a web app?

AWSLambda

AmazonS3

AmazonDynamoDB

AWS Certificate Manager

Amazon API Gateway

AWS Step Functions

AmazonSES

IAM

Page 9: Intro to Serverless AWS Web Apps

You don’t need C#/Ruby/Node/etc to serve a web app.

Page 10: Intro to Serverless AWS Web Apps

AmazonS3

<html>

</html>

Dev

Static Contentcat lovers

(users)

bucket

Page 11: Intro to Serverless AWS Web Apps

1. Push to bucket

bucket

<html>

</html>

Dev

aws s3 sync ./build/ s3://catsrus --region us-east-1 --delete

Sync to Bucket

Page 12: Intro to Serverless AWS Web Apps

2. Enable Static Web Server

bucket

<html>

</html>

Dev

AmazonS3

Page 13: Intro to Serverless AWS Web Apps

3. Add CDN

bucket

<html>

</html>

Dev

AmazonS3

Page 14: Intro to Serverless AWS Web Apps

4. Custom domain

bucket

<html>

</html>

Dev

AmazonS3

Page 15: Intro to Serverless AWS Web Apps

You can’t do everything in the browser!

Page 16: Intro to Serverless AWS Web Apps

AWSLambda

AmazonDynamoDB

AmazonSES

?

Event-Driven Compute

Page 17: Intro to Serverless AWS Web Apps

AWSLambda

Anatomy of a Lambda

Page 18: Intro to Serverless AWS Web Apps

What if I need to do a bunch of stuff?

Page 19: Intro to Serverless AWS Web Apps

AWSLambda

AWSLambda

AWSLambda

AWSLambda

Amazon API Gateway

AWS Step Functions{

AmazonDynamoDB

Page 20: Intro to Serverless AWS Web Apps

AWSLambda

Microservice Coordination with Step Functions

Page 21: Intro to Serverless AWS Web Apps

AWSLambda

Amazon API Gateway

AWS Step Functions

AWSLambda

AWSLambda

Microservice Coordination with Step Functions

Page 22: Intro to Serverless AWS Web Apps
Page 23: Intro to Serverless AWS Web Apps

Executions

Page 24: Intro to Serverless AWS Web Apps

Advantages of AWS• Cost

• Spend 0 time on infrastructure

• High availability

• Scalability only limited by your wallet

• Performance

• Loosely coupled microservice-y pieces

• Fun!

Page 25: Intro to Serverless AWS Web Apps

Disadvantages of AWS

• Learning curve is steep at first

• If your AWS zone goes down, so do you (I’m looking at you, US-EAST-2 😡)

• Managing all these little pieces can be tricky Frameworks like ServerLess and apex can help with this

Page 26: Intro to Serverless AWS Web Apps

Finding Help

• @AWSSupport usually responds in a few hours.

• Amazon docs are, on the whole, very good.

Page 27: Intro to Serverless AWS Web Apps

more cool stuff

Amazon Lightsail

Amazon ECS Amazon EC2

Amazon Glacier

AWS CodeCommit

AWS CodeDeploy

AWS CodePipeline

AWS CodeBuild

Amazon CloudWatch

AWSCloudFormation

Amazon CloudWatch

AWSCloudFormation

AmazonSQS

AmazonSNS

AWS IoT Amazon Mechanical Turk

Page 28: Intro to Serverless AWS Web Apps
Page 29: Intro to Serverless AWS Web Apps

eriehack.io