Transcript
Page 1: ITB2016 - AWS lambda

AWS LambdaWhat, why, when, how?

Page 2: ITB2016 - AWS lambda

What is Lambda?

Page 3: ITB2016 - AWS lambda

Compute service where you

don't think about…

Page 4: ITB2016 - AWS lambda

Servers

Page 5: ITB2016 - AWS lambda

Capacity

Page 6: ITB2016 - AWS lambda

Deployments

Page 7: ITB2016 - AWS lambda

Scaling

Page 8: ITB2016 - AWS lambda

Fault tolerance

Page 9: ITB2016 - AWS lambda

Metrics and logging

Page 10: ITB2016 - AWS lambda

Automatic OS and

language updates

Page 11: ITB2016 - AWS lambda

All of that is taken care of

automatically

Page 12: ITB2016 - AWS lambda

You can easily…

Page 13: ITB2016 - AWS lambda

Bring your own code,

including native libraries

Page 14: ITB2016 - AWS lambda

Run code in parallel

Page 15: ITB2016 - AWS lambda

Lambda use cases

Page 16: ITB2016 - AWS lambda

Create backends

Page 17: ITB2016 - AWS lambda

Create event handlers

Page 18: ITB2016 - AWS lambda

Create data

processing systems

Page 19: ITB2016 - AWS lambda

Serverless

Page 20: ITB2016 - AWS lambda

Event-driven scale

Page 21: ITB2016 - AWS lambda

100ms billing units

Page 22: ITB2016 - AWS lambda

You never pay for idle!

Page 23: ITB2016 - AWS lambda

How it works

Page 24: ITB2016 - AWS lambda

Upload code in a zip file

Page 25: ITB2016 - AWS lambda

Code can be…

v0.10 & v4.3 Java 8 v2.7

Page 26: ITB2016 - AWS lambda

Code is stateless,

persistence goes elsewhere

Page 27: ITB2016 - AWS lambda

Monitoring and logging

handled automatically by

CloudWatch

Page 28: ITB2016 - AWS lambda

Integrates with other

AWS services

Page 29: ITB2016 - AWS lambda

S3

DynamoDB

RDS

VPC

CloudWatch

CloudFormation

Cognito SNSAPI Gateway

SES

SWF

Kinesis CloudTrail

CloudWatch

All these & more…

Page 30: ITB2016 - AWS lambda

Compute Power

23 "power levels"

Page 31: ITB2016 - AWS lambda

Specified in Lambda

as memory

Page 32: ITB2016 - AWS lambda

From 128MB

To 1.5GB

Page 33: ITB2016 - AWS lambda

More memory = More CPU

Page 34: ITB2016 - AWS lambda

Price scales with

power level

Page 35: ITB2016 - AWS lambda

Pricing per 100ms(rounded up to nearest 100ms)

Page 36: ITB2016 - AWS lambda

Run durations from

100ms to 5 minutes

Page 37: ITB2016 - AWS lambda

For compute intensive tasks

set power level higher

Page 38: ITB2016 - AWS lambda

For I/O intensive tasks

set power level lower

Page 39: ITB2016 - AWS lambda

Event Sources

• S3• Schedule events• AWS IoT• CloudWatch

• DynamoDB• Kinesis• SNS• API Gateway

(sort of)

Page 40: ITB2016 - AWS lambda

“Serverless” API’s with

AWS API Gateway & Lambda

Page 41: ITB2016 - AWS lambda

Versioning

Page 42: ITB2016 - AWS lambda

By using versioning

nothing changes

Page 43: ITB2016 - AWS lambda

But now you can

publish a version

Page 44: ITB2016 - AWS lambda

Versions can have aliases

Page 45: ITB2016 - AWS lambda

VPC Support

Page 46: ITB2016 - AWS lambda

Pricing

Page 47: ITB2016 - AWS lambda

$0.20 per 1 million requests

Page 48: ITB2016 - AWS lambda

Pay for CPU usages in 100ms

intervals. Price depends on

memory allocation.

From $0.000000208 to $0.000002501 per 100ms

Page 49: ITB2016 - AWS lambda

First 1 million request

and

400,000 GB-seconds of

compute time per month

FREE!!!

Page 50: ITB2016 - AWS lambda

This is equal to approx.:

888 hours at 128Mb

….

74 hours at 1.5Gb

Page 51: ITB2016 - AWS lambda

Example uses

Page 52: ITB2016 - AWS lambda

Image processing

Page 53: ITB2016 - AWS lambda

Data processing

Page 54: ITB2016 - AWS lambda

Scheduled Tasks

Page 55: ITB2016 - AWS lambda

Document generation

Page 56: ITB2016 - AWS lambda

If you need help email me

[email protected]


Top Related