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
Lambda Image Resizing
Search
stevenjackson
April 21, 2016
Programming
0
72
Lambda Image Resizing
Lunch and Learn - April 2016
stevenjackson
April 21, 2016
Tweet
Share
More Decks by stevenjackson
See All by stevenjackson
Death By Specification
stevenjackson
1
32
Devour The Cloud With Locust Swarms - Hands On Load Testing
stevenjackson
0
63
Looking for Failure
stevenjackson
0
120
Better Software Through Shared Understanding
stevenjackson
0
130
Going to Eleven
stevenjackson
0
57
A Locust Storm Is A Good Thing!
stevenjackson
0
110
Faliing Your Way To Success
stevenjackson
0
79
Death By Specification(cukeup)
stevenjackson
0
130
Failure Lightning Talk
stevenjackson
0
96
Other Decks in Programming
See All in Programming
By the way Google Cloud Next 2025に行ってみてどうだった
ymd65536
0
110
The Nature of Complexity in John Ousterhout’s Philosophy of Software Design
philipschwarz
PRO
0
160
VitestのIn-Source Testingが便利
taro28
8
2.4k
プロダクト横断分析に役立つ、事前集計しないサマリーテーブル設計
hanon52_
3
530
The Missing Link in Angular’s Signal Story: Resource API and httpResource
manfredsteyer
PRO
0
140
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
740
Browser and UI #2 HTML/ARIA
ken7253
2
170
ASP.NETアプリケーションのモダナイゼーションについて
tomokusaba
0
240
iOSアプリで測る!名古屋駅までの 方向と距離
ryunakayama
0
150
REALITY コマンド作成チュートリアル
nishiuriraku
0
120
2ヶ月で生産性2倍、お買い物アプリ「カウシェ」4チーム同時改善の取り組み
ike002jp
1
110
ウォンテッドリーの「ココロオドル」モバイル開発 / Wantedly's "kokoro odoru" mobile development
kubode
1
250
Featured
See All Featured
KATA
mclloyd
29
14k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.4k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Code Review Best Practice
trishagee
67
18k
Navigating Team Friction
lara
185
15k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
410
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Rebuilding a faster, lazier Slack
samanthasiow
81
9k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.2k
We Have a Design System, Now What?
morganepeng
52
7.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
47
2.7k
Transcript
WE DON’T NEED NO STINKING SERVERS IMAGE RESIZING WITH AWS
LAMBDA
The Problem: For the last 6 years, users have been
able to upload any image they like for use in a VizZle lesson 10144 × 8054 pixels 32.6 MB 980 DPI minutes to download
And the app would never show it at that resolution!
Max Page Size: 1920 x 1080 414x329 915x686 944x708
Or the old app Flash “Card” Size: 520 x 390
The Solution: Batch convert all the images! Max Image Size
960x540 680x540 $ convert 1416855261.78270 -size x540
“How many images are there anyway?” –Hey Blinken
None
None
None
“Are you going to download every one from the internet?”
–Al Gore
None
None
“What are we going to do with new uploads?” –Johnny
Five
None
None
“Who is going to maintain that EC2 instance?” –Jeff Bezos
None
None
None
None
None
None
None
None
Or any binary compiled on Amazon Linux!
None
None
None
None
None
None
None
Read/Write S3 Role Type: AWS Lambda Attach Policy: AWSLambdaExecute
None
None
Lambda Interface
None
None
Deployment
Configuration
Testing
Testing
Testing
Image Resizing Gotchas Maintain Aspect Ratios Lossy vs Lossless Lossy
vs Headless Lambda Inception ACLs
Image Resizing Gotchas Maintain Aspect Ratios Lossy vs Lossless Lossy
vs Headless Lambda Inception ACLs
Lambda Gotchas Function runtime is limited to 5 minutes Maximum
of 1.5GB memory Debugging involves waiting for CloudWatch logs to show up
“What else can we do with it?” –Jeff Bezos
None
None
None
None
None
None
None
None
None
None
None