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
67
ActiveRecord Observers - RORLab Season 3-6
seapy
0
47
ActiveRecord Callbacks - RORLab Season 3-5
seapy
0
45
Rails Database Migrations - RORLab Season 3-3
seapy
2
99
Other Decks in Programming
See All in Programming
PHPでWebSocketサーバーを実装しよう2025
kubotak
0
220
Node-RED を(HTTP で)つなげる MCP サーバーを作ってみた
highu
0
100
PicoRuby on Rails
makicamel
2
110
プロダクト志向ってなんなんだろうね
righttouch
PRO
0
160
関数型まつり2025登壇資料「関数プログラミングと再帰」
taisontsukada
2
850
WindowInsetsだってテストしたい
ryunen344
1
200
CursorはMCPを使った方が良いぞ
taigakono
1
190
Java on Azure で LangGraph!
kohei3110
0
170
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
47
31k
Systèmes distribués, pour le meilleur et pour le pire - BreizhCamp 2025 - Conférence
slecache
0
110
AIエージェントはこう育てる - GitHub Copilot Agentとチームの共進化サイクル
koboriakira
0
440
すべてのコンテキストを、 ユーザー価値に変える
applism118
2
880
Featured
See All Featured
A designer walks into a library…
pauljervisheath
207
24k
Gamification - CAS2011
davidbonilla
81
5.3k
The Language of Interfaces
destraynor
158
25k
A better future with KSS
kneath
239
17k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
Building a Modern Day E-commerce SEO Strategy
aleyda
42
7.3k
A Tale of Four Properties
chriscoyier
160
23k
Visualization
eitanlees
146
16k
Writing Fast Ruby
sferik
628
61k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
How to train your dragon (web standard)
notwaldorf
94
6.1k
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
.