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
65
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
23
Devour The Cloud With Locust Swarms - Hands On Load Testing
stevenjackson
0
54
Looking for Failure
stevenjackson
0
95
Better Software Through Shared Understanding
stevenjackson
0
110
Going to Eleven
stevenjackson
0
51
A Locust Storm Is A Good Thing!
stevenjackson
0
110
Faliing Your Way To Success
stevenjackson
0
72
Death By Specification(cukeup)
stevenjackson
0
110
Failure Lightning Talk
stevenjackson
0
93
Other Decks in Programming
See All in Programming
ONE WEDGE_company_guide
1wedge_one
0
490
Goのエラースタックトレースの歴史と今後
sonatard
9
1.5k
1BRC--Nerd Sniping the Java Community
gunnarmorling
0
340
Code Reviews
bkuhlmann
4
890
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
110
Ruby Pattern Matching
bkuhlmann
0
930
Let's learn code review
riofujimon
2
430
Apache Hive 4 on Treasure Data
ryukobayashi
0
340
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
1
1.1k
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
650
デフォルトにして至高、RubyMineの大好きな所
ruzia
0
410
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
1
190
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
Producing Creativity
orderedlist
PRO
337
39k
We Have a Design System, Now What?
morganepeng
43
6.8k
What's in a price? How to price your products and services
michaelherold
237
11k
Clear Off the Table
cherdarchuk
84
310k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
Building a Modern Day E-commerce SEO Strategy
aleyda
17
6.4k
Rebuilding a faster, lazier Slack
samanthasiow
73
8.2k
Practical Orchestrator
shlominoach
182
9.7k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
Building a Scalable Design System with Sketch
lauravandoore
456
32k
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