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
コード生成なしでモック処理を実現!ovechkin-dm/mockioで学ぶメタプログラミング
qualiarts
0
270
Software Architecture
hschwentner
6
2.3k
オープンソースソフトウェアへの解像度🔬
utam0k
17
3.1k
Six and a half ridiculous things to do with Quarkus
hollycummins
0
210
CSC305 Lecture 11
javiergs
PRO
0
270
Building, Deploying, and Monitoring Ruby Web Applications with Falcon (Kaigi on Rails 2025)
ioquatix
4
2.5k
AI駆動で0→1をやって見えた光と伸びしろ
passion0102
1
850
エンジニアインターン「Treasure」とHonoの2年、そして未来へ / Our Journey with Hono Two Years at Treasure and Beyond
carta_engineering
0
430
AI Agent 時代的開發者生存指南
eddie
4
2.1k
実践Claude Code:20の失敗から学ぶAIペアプログラミング
takedatakashi
18
8.7k
Vueのバリデーション、結局どれを選べばいい? ― 自作バリデーションの限界と、脱却までの道のり ― / Which Vue Validation Library Should We Really Use? The Limits of Self-Made Validation and How I Finally Moved On
neginasu
2
1.6k
Reactive Thinking with Signals and the Resource API
manfredsteyer
PRO
0
110
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
130k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
36
6.1k
The Illustrated Children's Guide to Kubernetes
chrisshort
49
51k
Producing Creativity
orderedlist
PRO
347
40k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Done Done
chrislema
185
16k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.2k
Agile that works and the tools we love
rasmusluckow
331
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
.