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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
stevenjackson
April 21, 2016
Programming
90
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Lambda Image Resizing
Lunch and Learn - April 2016
stevenjackson
April 21, 2016
More Decks by stevenjackson
See All by stevenjackson
Death By Specification
stevenjackson
1
52
Devour The Cloud With Locust Swarms - Hands On Load Testing
stevenjackson
0
93
Looking for Failure
stevenjackson
0
160
Better Software Through Shared Understanding
stevenjackson
0
190
Going to Eleven
stevenjackson
0
110
A Locust Storm Is A Good Thing!
stevenjackson
0
150
Faliing Your Way To Success
stevenjackson
0
100
Death By Specification(cukeup)
stevenjackson
0
170
Failure Lightning Talk
stevenjackson
0
100
Other Decks in Programming
See All in Programming
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
140
PHP初心者セッション2026 〜生成AIでは見えない裏側を知る:今だからLAMPを通して仕組みを学ぶ〜
kashioka
0
850
アルゴリズムは何を圧縮しているのか ─ Haskell から育った「圧縮代数」というメンタルモデル
naoya
16
3.9k
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
490
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
280
夏だ!祭りだ!祭りとはドメインモデリングでは?
ryugen04
0
170
【QA Test Talk Vol.8】AI-DLC による Whole Team Approach の加速
pkshadeck
PRO
0
100
【やさしく解説 設計編・中級 #1】一つの車に、運転手は一人 ~ある倉庫システムの事例から~
panda728
PRO
0
200
AI時代に設計が 最大の生産性レバーになる 意図駆動開発とデータを消さない設計|Don't Delete Your Data or Your Intent — Design as the Deepest Lever in the AI Era
tomohisa
1
710
テーブルをDELETEした
yuzneri
0
140
Built Our Own Background Agent at LayerX
layerx
PRO
9
5k
ソフトウェア設計に溶けるインフラ ― AWS CDK のインフラ認識論
konokenj
3
760
Featured
See All Featured
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
480
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
290
Bash Introduction
62gerente
615
220k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
How to train your dragon (web standard)
notwaldorf
97
6.7k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
56k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Side Projects
sachag
455
43k
Git: the NoSQL Database
bkeepers
PRO
432
67k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Mobile First: as difficult as doing things right
swwweet
225
10k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
160
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