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
68
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
30
Devour The Cloud With Locust Swarms - Hands On Load Testing
stevenjackson
0
60
Looking for Failure
stevenjackson
0
110
Better Software Through Shared Understanding
stevenjackson
0
120
Going to Eleven
stevenjackson
0
51
A Locust Storm Is A Good Thing!
stevenjackson
0
110
Faliing Your Way To Success
stevenjackson
0
75
Death By Specification(cukeup)
stevenjackson
0
120
Failure Lightning Talk
stevenjackson
0
93
Other Decks in Programming
See All in Programming
Внедряем бюджетирование, или Как сделать хорошо?
lamodatech
0
960
AWS Lambda functions with C# 用の Dev Container Template を作ってみた件
mappie_kochi
0
200
サーバーゆる勉強会 DBMS の仕組み編
kj455
1
320
DevinとCursorから学ぶAIエージェントメモリーの設計とMoatの考え方
itarutomy
1
430
2025.01.17_Sansan × DMM.swift
riofujimon
2
620
盆栽転じて家具となる / Bonsai and Furnitures
aereal
0
2.1k
SwiftUIで単方向アーキテクチャを導入して得られた成果
takuyaosawa
0
110
ファインディの テックブログ爆誕までの軌跡
starfish719
1
570
asdf-ecspresso作って 友達が増えた話 / Fujiwara Tech Conference 2025
koluku
0
1.5k
いりゃあせ、PHPカンファレンス名古屋2025 / Welcome to PHP Conference Nagoya 2025
ttskch
1
220
functionalなアプローチで動的要素を排除する
ryopeko
1
690
社内フレームワークとその依存性解決 / in-house framework and its dependency management
vvakame
1
420
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
222
9k
Designing Experiences People Love
moore
139
23k
How GitHub (no longer) Works
holman
312
140k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
RailsConf 2023
tenderlove
29
980
How to train your dragon (web standard)
notwaldorf
89
5.8k
Facilitating Awesome Meetings
lara
51
6.2k
Docker and Python
trallard
43
3.2k
The World Runs on Bad Software
bkeepers
PRO
66
11k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.5k
4 Signs Your Business is Dying
shpigford
182
22k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
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