Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Lambda + S3 썸네일 생성 및 운영 - AWSKRUG 정기 세미나 (2016년...
Search
seapy
September 21, 2016
Programming
560
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Lambda + S3 썸네일 생성 및 운영 - AWSKRUG 정기 세미나 (2016년 9월)
"AWSKRUG 정기 세미나 (2016년 9월) - 서버리스(Serverless) 아키텍처"에서 발표한 내용.
당근마켓의 썸네일 서비스 방식을 변경한 이야기
seapy
September 21, 2016
More Decks by seapy
See All by seapy
형태소 분석기를 적용한 elasticsearch 운영
seapy
0
490
Amazon ec2 container service 소개
seapy
0
95
boot2docker 사용시 컨테이너에서 생성한 데이터를 유지하기
seapy
0
88
Elasticsearch + fluentd for Log analysis
seapy
3
10k
ActiveRecord Associations(2) - RORLab Season 3-8
seapy
0
53
ActiveRecord Associations(1) - RORLab Season 3-7
seapy
0
74
ActiveRecord Observers - RORLab Season 3-6
seapy
0
53
ActiveRecord Callbacks - RORLab Season 3-5
seapy
0
51
Rails Database Migrations - RORLab Season 3-3
seapy
2
110
Other Decks in Programming
See All in Programming
コンパウンドプロダクト開発のためのローカルプロセスマネージャー再発明 #layerxgo
izumin5210
0
660
What We Talk About When We Talk About XP
m_seki
2
480
kubernetes コンポーネント開発入門 / 新卒N年目の勉強会&交流会!〜〇〇への誘い〜 #n_study
mazrean
0
200
Security issues being discussed on Web Platforms
petamoriken
0
670
市販E-Readerを乗っ取れ 〜Embedded Swiftで電子ペーパーガジェットを制御する〜
trickart
0
160
信頼性の目標を誰も求めてない
shubox
0
500
MIZARU@SPAJAM2026 第二回予選
1901drama
0
110
「AI時代、配布するPythonコードをどう守るか: 難読化の実験と判断軸」 #PyconJP2026
pkshadeck
PRO
2
190
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
210
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
3.8k
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
330
RSSとCodexを使ってX投稿自動化してみた
ochtum
0
110
Featured
See All Featured
BBQ
matthewcrist
89
10k
Building Applications with DynamoDB
mza
96
7.2k
Making Projects Easy
brettharned
120
6.7k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
320
How to Think Like a Performance Engineer
csswizardry
28
2.8k
Odyssey Design
rkendrick25
PRO
2
800
GraphQLとの向き合い方2022年版
quramy
50
15k
Building the Perfect Custom Keyboard
takai
2
870
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
720
A Tale of Four Properties
chriscoyier
163
24k
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
.