Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AWS Lambda
Search
Julian Kleinhans
June 09, 2017
Technology
1
69
AWS Lambda
Serverless, event-driven compute service
Julian Kleinhans
June 09, 2017
Tweet
Share
More Decks by Julian Kleinhans
See All by Julian Kleinhans
AWS Kinesis
kj187
2
200
AWS Lambda
kj187
1
47
Other Decks in Technology
See All in Technology
My Generation 年配者がこの先生きのこるには (Developers CAREER Boost 2024 Edition)/My Generation How elder engineers can survive
kwappa
3
380
Reliability Engineering at Studist
katsuhisa91
PRO
0
130
Tailwind CSSとAtomic Designで実現する効率的な Web 開発の事例
toranoana
1
270
目玉アップデート!のSageMaker LakehouseとUnified Studioは何たるかを見てみよう!
nayuts
0
130
IVRyエンジニア忘年LT大会2024 クリティカルユーザージャーニーの整理
abnoumaru
0
130
開発者向けツールを魔改造してセキュリティ診断ツールを作っている話 - 第1回 セキュリティ若手の会 LT
pizzacat83
0
410
WED Company Deck for Engineer
wed
2
3.7k
開志専門職大学特別講義 2024 オープニング
1ftseabass
PRO
0
230
論理レプリケーションを使ったDB統合
kkato1
0
340
Replit Agent
kawaguti
PRO
2
210
AWS re:Invent 2024登壇資料(GBL206-JA: Unleashing the power of generative AI on AWS for your business)
minorun365
PRO
7
260
実務につなげる数理最適化
recruitengineers
PRO
4
420
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
The Cult of Friendly URLs
andyhume
78
6.1k
Adopting Sorbet at Scale
ufuk
73
9.1k
Music & Morning Musume
bryan
46
6.2k
Building Applications with DynamoDB
mza
91
6.1k
For a Future-Friendly Web
brad_frost
175
9.4k
BBQ
matthewcrist
85
9.3k
4 Signs Your Business is Dying
shpigford
181
21k
Designing Experiences People Love
moore
138
23k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
260
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Transcript
1 09.06.17 AWS Lambda Serverless, event-driven compute service 09.06.2017, AOE
Internal Meetup, Julian Kleinhans
2 09.06.17 Julian Kleinhans Software Architect @ AOE GmbH Standort
Krefeld, NRW @kj187
3 09.06.17 What is AWS Lambda Serverless compute service Introduced
by Amazon in November 2014
4 09.06.17 What means serverless Serverless = no servers ?
5 09.06.17 What means serverless NO, there are servers But
someone else is responsible Cloud Provider
6 09.06.17 Goal behind serverless Primarily focus on code Not
infrastructure Capacity, Scaling, Monitoring, Logging, Security Patching ...
7 09.06.17 Replace serverless with ... FaaS Function as a
service CoD Code on demand
8 09.06.17 Flow Changes in data state Request to endpoints
Changes in resource state Event source Function Services (anything) Change/Add data state Trigger AWS resource Call HTTP endpoint Your Code
9 09.06.17 Events Event Sources Event sources that trigger AWS
Lambda • Amazon S3 • Amazon DynamoDb • Amazon Kinesis • Amazon API Gateway (REST API) • On Demand via SDK • ... approx. 16-17 services
10 09.06.17 Function Write single-purpose stateless functions single responsibility principle
11 09.06.17 Function Runtimes NodeJS 4.3 & 6.10 Java 8
Python 2.7 C#
12 09.06.17 Function ZIP Package handler-xyz.js node_modules/* Terraform example resource
"aws_lambda_function" "lambda_nodejs_example" { filename = “directory/example-nodejs-lambda.zip" function_name = "example_nodejs_lambda" handler = ”handler-xyz.handler" runtime = "nodejs6.10" }
13 09.06.17 Use Case 1 2 3 4 Store image
in S3 Lambda Event Trigger Create thumbnail Store thumbnail in S3
14 09.06.17 Use Case E-Mail DeskPro Middleware TargetProcess API Gateway
Create bug ticket Close ticket Create ticket Webhook Event source Lambda DeskPro -> TargetProcess (fully automated)
15 09.06.17 Limits Maximum execution duration per request => 300
seconds Alternative S3 Storage Lambda function deployment package size (.zip/.jar file) => 50 MB 100 concurrent executions 1.000 invokes per second Increases available via AWS customer service
16 09.06.17 Costs 1 million requests and 400,000 GB-second of
compute time every month, every customer for free $0.20 per 1 million requests ($0.0000002 per request) Never pay for idle
17 09.06.17 Demo DEMO https://github.com/kj187/aws_terraform_templates
18 09.06.17 Alternatives Azure Functions Microsoft Google Cloud Functions Google,
beta OpenWhisk IBM
19 09.06.17 Thank You!