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 + S3 썸네일 생성 및 운영 - AWSKRUG 정기 세미나 (2016년...
Search
seapy
September 21, 2016
Programming
1
550
Lambda + S3 썸네일 생성 및 운영 - AWSKRUG 정기 세미나 (2016년 9월)
"AWSKRUG 정기 세미나 (2016년 9월) - 서버리스(Serverless) 아키텍처"에서 발표한 내용.
당근마켓의 썸네일 서비스 방식을 변경한 이야기
seapy
September 21, 2016
Tweet
Share
More Decks by seapy
See All by seapy
형태소 분석기를 적용한 elasticsearch 운영
seapy
0
480
Amazon ec2 container service 소개
seapy
0
84
boot2docker 사용시 컨테이너에서 생성한 데이터를 유지하기
seapy
0
81
Elasticsearch + fluentd for Log analysis
seapy
3
10k
ActiveRecord Associations(2) - RORLab Season 3-8
seapy
0
47
ActiveRecord Associations(1) - RORLab Season 3-7
seapy
0
69
ActiveRecord Observers - RORLab Season 3-6
seapy
0
47
ActiveRecord Callbacks - RORLab Season 3-5
seapy
0
46
Rails Database Migrations - RORLab Season 3-3
seapy
2
99
Other Decks in Programming
See All in Programming
あなたの知らない「動画広告」の世界 - iOSDC Japan 2025
ukitaka
0
360
Serena MCPのすすめ
wadakatu
4
880
複雑化したリポジトリをなんとかした話 pipenvからuvによるモノレポ構成への移行
satoshi256kbyte
1
750
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
160
猫と暮らすネットワークカメラ生活🐈 ~Vision frameworkでペットを愛でよう~ / iOSDC Japan 2025
yutailang0119
0
220
CSC305 Lecture 01
javiergs
PRO
1
390
ててべんす独演会〜Flowの全てを語ります〜
tbsten
1
220
(Extension DC 2025) Actor境界を越える技術
teamhimeh
1
220
『毎日の移動』を支えるGoバックエンド内製開発
yutautsugi
2
140
Swift Concurrency - 状態監視の罠
objectiveaudio
2
450
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
310
Your Perfect Project Setup for Angular @BASTA! 2025 in Mainz
manfredsteyer
PRO
0
120
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
49
14k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
127
53k
Side Projects
sachag
455
43k
Navigating Team Friction
lara
189
15k
A better future with KSS
kneath
239
17k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
850
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Transcript
Lambda + S3 ॉ֎ੌ ࢤࢿ ߂ AWSKRUG ӝ ࣁա
(2016֙ 9ਘ) - ࢲߡܻझ(Serverless) ইఃఫ
ହള(@seapy) Ӕ݃ iOS ѐߊ, ࢲߡח оՔ...
ঌ۰ ॉ֎ੌ ࢤࢿ ߑߨ · ਗࠄ о ࢤࢿغݶ ॉ֎ੌ ࢤࢿ
റ ੌ۽ · ॉ֎ੌ ܳ ਃೞח दী पदрਵ۽ ࢤࢿ
ॉ֎ੌ ܻ ࢤࢿ · ॉ֎ੌ ӝо ߸҃غݶ ݽٚ ॉ֎ੌਸ द
ࢤࢿ · , ॉ֎ੌ ӝо নೡࣻ۾ ݆ ҕр ࢎਊ
ৡ٣ݔ٘ ॉ֎ੌ ࢤࢿ ॉ֎ੌਸ ܻ ࢤࢿೞח ߑߨীࢲ ػ ױਸ ೧Ѿ
· ॉ֎ੌ ӝ ߸҃ী ٮܲ ѐߊ ߂ ୭ࣗ · ҕр ѐࣻ ݅ఀ݅ ࢎਊ (ଵҊ : ࢲߡ ࠺ਊਸ 70%ա ੋ ৡ٣ݔ٘ ܻࢎ ঠӝ — VCNC ূפয݂ ࠶۽Ӓ)
ৡ٣ݔ٘ ॉ֎ੌ ࢤࢿ ױ · ೠ ߣী ցޖ ਃ ށܻݶ
߸ജ पಁ оמ (ॉ֎ੌ ӝ ߸ജ э ҃ա CDN ޙઁ) · CDN நद өח э ਃਸ ߈ࠂ೧ࢲ ܻ
Ӕ݃ ࢎ۹ 1 refile અਸ ਊ೧ ৡ٣ݔ٘ ॉ֎ੌ ߑध 1֙
· Ҋ ౠࢿ࢚ CDN நएী زद ࣘ · reflie અ ౠࢿਵ۽ ۨੌझ৬ э ࢲߡ ࢎਊ · ܻࢎҗ ਢࢲߡ ਃਗ ܴ
ৡ٣ݔ٘ח ನӝ · ࣗӏݽۄ ৡ٣ݔ٘۽ ੋೠ ҕр ബਯ ѐࢶ ծ
· reflie ࢎਊೞݶࢲ ѻ؍ ۄ݃ ੋ ৡ٣ݔ٘ী ೠ ੋध ѐࢶ উؽ ƑƑ · ࢲߡ ী ೠ ӈଳ
Lambda + S3
S3 · ݽ߄ੌ ۄীࢲ S3۽ ߄۽ স۽٘ · ੌ
୶о ߮۽ Lambda प೯
Lambda · ࢲߡ ਃ হ · प೯दр ӝળਵ۽
җӘ · ې ށ۰ب ঌইࢲ झாੌ݂
֎߁ ӏ ী ӏਸ ੜ ೧ঠ աী ഛоמ ҃۽ ӝ߈ਵ۽
ߣ૩ ಫ؊ী ٮۄ ࢲ۽ ܲ ࢎૉ ॉ֎ੌਸ ࢤࢿ
None
Lambda
ߓನ ୷ੌ ࢤࢿ झ݀۽ zip ࢤࢿറ ࣻز স۽٘ #!/bin/sh zip
-r lambda index.js node_modules
۽Ӓ ഛੋೞӝ ୭Ӕ 2दр ղ Error ۽Ӓ ۱ $ aws
logs filter-log-events \ --start-time `date -v-2H "+%s"`000 \ --log-group-name "/aws/lambda/MakeImageResize" \ --filter-pattern "Error" \ --interleaved \ --output json'
ఋইਓ ী۞ী ೠ ఋইਓ ۽Ӓী ࣁೠ ղਊਸ ۱ೞ ঋ
թ दр 500ms ݶ ী۞ ߔ ഐ const timeout = setTimeout(() => { callback(new Error(`[FAIL]:${bucket}/${key}:TIMEOUT`)); }, context.getRemainingTimeInMillis() - 500); // clear ח ٘ ઙܐ दী ݺदਵ۽ ೧ঠೣ clearTimeout(timeout);
য়ܨܻ ߂ दب · ী۞о ߊࢤೞѢա पಁೞݶ दب (ݫݽܻ ࠗ,
زदप೯ ઁೠ, ఋইਓ, ӝఋ ী۞) · ߮ ఋੑҗ ܻѢೞח ࣗझী ٮۄ ܴ · S3 ё ࢤࢿ ߮ ࣗझח 3ߣ दب
زद प೯іࣻ ઁೠ · Throttles : زदী प೯غח Lambda ѐࣻ
· ઁೠী Ѧܻݶ 1 ۄҊ݅ द · ݃ա ؊ ਃೠ ݽܴ · ӝࠄчਵ۽ ҅ & 100ѐ · ࢎী ۚ ஏ೧ࢲ ܻ Supportী न (ب ӝળ 3)
Apex эѦ ࢎਊೞ ঋ ਬ? · ࣗझ٘ ࢿೞҊ դറী
ઓܳ ঌѱؽ · ೧ ో ӝמਸ ҕࠗೞחѪী ೠ दр ࠗ
খਵ۽ ೞҊ रѢ · Lambda + API GWܳ ਊೠ ৡ٣ݔ٘
ܻࢎ · ࢲ ܻਵ۽ (ب S3ী ё ୶оೞݶ ࢲ S3ী ୶о ೞҊ रؘ -_-a)
ߊܐ · http://www.slideshare.net/seapy · https://speakerdeck.com/seapy · "AWS Lambdaܳ ਊೠ ॉ֎ੌ
ࢤࢿ ѐߊ റӝ" http://bit.ly/2diCYU5 · N42 ࠶۽Ӓ https://medium.com/n42-corp
.