Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Lambda Image Resizing
stevenjackson
April 21, 2016
Programming
0
52
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
19
Devour The Cloud With Locust Swarms - Hands On Load Testing
stevenjackson
0
42
Looking for Failure
stevenjackson
0
65
Better Software Through Shared Understanding
stevenjackson
0
77
Going to Eleven
stevenjackson
0
41
A Locust Storm Is A Good Thing!
stevenjackson
0
95
Faliing Your Way To Success
stevenjackson
0
42
Death By Specification(cukeup)
stevenjackson
0
110
Failure Lightning Talk
stevenjackson
0
77
Other Decks in Programming
See All in Programming
Isar勉強会
hoddy3190
0
480
回帰分析ではlm()ではなくestimatr::lm_robust()を使おう / TokyoR100
dropout009
0
4.5k
kintoneでランダム取得を作ってみた(imoniCamp 2022-07-27)
shokun1108
0
150
設計の考え方とやり方
masuda220
PRO
54
30k
企業内スモールデータでのデータ解析
hamage9
0
890
Records の使い方はこれでいいの? をみんなで考えたい / Java DO #20
gishi_yama
0
120
それ全部エラーメッセージに書いてあるよ!〜独学でPHPプログラミングが上達するたった一つの方法〜
77web
1
150
読みやすいコード クラスメソッド 2022 年度新卒研修
januswel
0
2.9k
Carp言語さわってみた 〜鯉を取り戻せ編〜
tsin45
0
100
Better Angular Architectures: Architectures with Standalone Components @DWX2022
manfredsteyer
PRO
1
410
테라폼으로 ECR 관리하기 (How to Manage ECR with Terraform)
posquit0
0
530
話題の AlloyDB は本当に凄いデータベースなのでプレビューを使い倒した #devio2022
maroon1st
0
13k
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
39
13k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
14
3.8k
Designing on Purpose - Digital PM Summit 2013
jponch
106
5.7k
4 Signs Your Business is Dying
shpigford
169
20k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1.1M
How to train your dragon (web standard)
notwaldorf
60
3.9k
Robots, Beer and Maslow
schacon
152
7.1k
YesSQL, Process and Tooling at Scale
rocio
157
12k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
269
12k
The World Runs on Bad Software
bkeepers
PRO
57
5.4k
Practical Orchestrator
shlominoach
178
8.7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
29
4.4k
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