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
인프라 관점에서 접근하는 리디스토리 개발기
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
RIDI
September 08, 2017
Programming
1.5k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
인프라 관점에서 접근하는 리디스토리 개발기
발표자: 스토리팀 박준형
RIDI
September 08, 2017
More Decks by RIDI
See All by RIDI
원격 근무 팀 운영 경험 공유
ridi
0
2.3k
SVG Icon Design Guide
ridi
2
4.2k
빠르게 훑어보는 리디페이 백엔드 개발기
ridi
2
5.3k
Next.js는 정말 zero config였다.
ridi
0
2.2k
3일 걸릴 것 같던 구매목록 다운로드는 왜 3주가 걸렸을까?
ridi
0
490
원격으로 한 달 일해보니
ridi
0
1.5k
리디북스 앱에 S Pen Remote 연동하기
ridi
2
2.9k
UI 라이브러리 개발기
ridi
1
2.8k
테스트 환경 개선하기
ridi
8
3.7k
Other Decks in Programming
See All in Programming
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
13k
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
8.1k
はてなアカウント基盤 State of the Union
cockscomb
1
740
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
130
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
280
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.2k
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
210
コンテキストの使い捨てをやめる — ビジネスルール駆動開発と miko —
ioki
0
240
Inside Stream API
skrb
1
780
act1-costs.pdf
sumedhbala
0
110
Javaの型とAI時代に型が大事な理由 / java types and type in AI era
kishida
2
150
エンジニア向け会社紹介/Findy Company Profile
findyinc
6
350k
Featured
See All Featured
How to make the Groovebox
asonas
2
2.2k
The World Runs on Bad Software
bkeepers
PRO
72
12k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.7k
Typedesign – Prime Four
hannesfritz
42
3.1k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
150
HDC tutorial
michielstock
2
720
Discover your Explorer Soul
emna__ayadi
2
1.1k
How STYLIGHT went responsive
nonsquared
100
6.2k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Unsuck your backbone
ammeep
672
58k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
Fireside Chat
paigeccino
42
4k
Transcript
ੋۄ ҙীࢲ Ӕೞח ܻ٣झషܻ ѐߊӝ 2017֙ 9ਘ 8ੌ © RIDI
Corp.
߅ળഋ - 6֙ର ѐߊ - C / C++ ࡅ -
݃ࣗ ࡅ - ਦب ୭Ҋ 2 ߊ ࣗѐ
3 Әө ࣚѪ - Linux ਊ۽Ӓ۔ - MFC ਊ۽Ӓ۔ -
WPF ਊ۽Ӓ۔ - Reverse proxy - ܻ٣࠘झ - ܻ٣झషܻ
4 Ӓী о ୭Ӕী ݅ٚ ܻ٣झషܻী ೧ ঠӝ ೧ࠇद.
5 ೞҊ र ঠӝח ؘ݆ Ӓীࢲ ੋۄী ೧ ঠӝܳ ೞભ.
6 খীࢲח ޥо হҊ рױ೧ ࠁ݅,
7 ٍীࢲ ࠁݶ ޥо ݆Ҋ ࠂ೧ ࠁੑפ.
8 ೞաঀ ٜ݅য ࠇद.
9 ഥਗ: ѐߊ 2ݺ - ٜ݅Ҋ ח ࢎખ పझ ೧ࠁ
- WAS - DB
10 ഥਗ: ѐߊ 3ݺ - ࢲ Regionী Zone فѐפө ചח
ೞ - WAS 2ѐ - DB Multi-AZ
11 ഥਗ: ਗ 4ݺ - ࠺زӝ স - Celery ܳ
ੋझఢझীࢲ э جܻ. - Queueח Rabbit MQо ചی Fail overо য۵֎. - Session ٸޙী Redis ॶԁפө Redisী Queue ೡب . - Redis Fail overח Sentinel ۽ ೞ. - WAS 2ѐ - Redis 2ѐ - DB Multi-AZ
12 ഥਗ: ਗ 4ݺ
13 ഥਗ: ਗ 6ݺ - DB ܻ࠙ - Master DBח
ࣗೞפө Slaveܳ ࠢ. - DB reqب оמೞݶ Slave۽ оب۾ ѐߊೞ. - Log ؘఠա ੍ ӝ۾ ؘఠח प ࢲ࠺झ৬ ޖҙೞפө લ؊ۄب ഒ લਵۄҊ DB ܳ ܻ࠙ೞ. - ޛۿ Log, ੍ӝ ӝ۾ গо যب ࢲ࠺झ ਊী ର হب۾ ѐߊೞ - WAS 2ѐ, Redis 2ѐ - DB Multi-AZ, Slave 1ѐ, Log DB, Reading DB
14 ഥਗ: ਗ 6ݺ
15 ഥਗ: ࢎղ 10ݺ - ࠭যࢲߡ - ࠭য పझܳ ਤ೧
࠭য ࢲߡܳ ୶оೞ. - ӝઓ ࠘झ ࢲߡܳ оઉ৬ࢲ ѐઑೞ. - ࠗೞо ߹۽ হਸѪ эӟ ೠؘ ܲ যפө ٮ۽ ࢲߡܳ ف. - ё - EPUB җ , ز࢚ਸ ೧ঠ ೞחؘ S3ী ೞ. - EPUB ਃೞפө ৬ ز࢚җ ٮ۽ ೞ. - WAS 2ѐ, View WAS 2ѐ, Redis 2ѐ - DB Multi-AZ, Slave 1ѐ, Log DB, Reading DB, - S3
16 ഥਗ: ࢎղ 10ݺ
17 ഥਗ: ࢎղ 15ݺ - CDN - ٣য(, ز࢚)ח ֢غب
࢚ҙ হҊ ࣠ ࡈۄঠ ೞפө খী CDNਸ ف. - JSی CSSب CDNਸ ਊೞ. - TTL ҙܻ ೞӝ য۰פ ݽٚ ੌ ࠛ߸ਵ۽ рೞ. - WAS 2ѐ, View WAS 2ѐ, Redis 2ѐ - DB Multi-AZ, Slave 1ѐ, Log DB, Reading DB - S3, CloudFront
18 ഥਗ: ࢎղ 15ݺ
19 ࢲ࠺झ য়!
20 ഥਗ: 5,000ݺ - Worker - ӝܻݶ ޖܐ, ୭नಞ ঌܿ
١ ࠺زӝ Queueী ऺৈࢲ оՔ ןѱ غ֎. - पदрࢿ সٜ ਊ Workerীࢲ جܻ - Cronب Ӓ Workerо جܻ. - ݽפఠ݂ب ೧ঠ ೞחؘ CloudWatchী োѾೞ. - ߓನ పझب ೧ঠ ೞפө Stagingࢲߡب ೞա ٜ݅. - WAS 2ѐ, Worker 1ѐ, Staging 1ѐ, View WAS 4ѐ, Redis 2ѐ - DB Multi-AZ, Slave 1ѐ, Log DB, Reading DB - S3, CloudFront, CloudWatch
21 ഥਗ: 5000ݺ
22 ഥਗ: 1݅ݺ - ઑഥ ਊ DB - DBо Բ
લ֎. - , ޖীࢲ ࢲ࠺झ ࠙ࢳਸ ਤ೧ ষդ Queryܳ զܻҊ ֎. - DBੋझఢझо ৈ۞ѐۄࢲ ࠙ࢳ ࠛಞೞ֎. - ઑഥ ਊ DBܳ ٜ݅যࢲ ࢲ࠺झ৬ ܻ࠙ ೞҊ ݽٚ DBܳ Replicationೞ. - WAS 2ѐ, Worker 1ѐ, Staging 1ѐ, View WAS 4ѐ, Redis 2ѐ - DB Multi-AZ, Slave 1ѐ, Log DB, Reading DB, Read DB - S3, CloudFront, CloudWatch
23 ഥਗ: 1݅ݺ
24 ഥਗ: 5݅ݺ - ࠭য ࢲߡ ѐࢶ - ࢸզী ର۹ղо
࠭য ࢲߡ લ֎. - оՔ оՔ ࠭য ࢲߡ લ֎. - ݅ച ࢲ࠺झ ೧ঠ ೞחؘ ۽ оݶ উغѷ֎. - EPUB ࠛ߸פө ࠭যࢲߡо S3ী यೠ ؘఠܳ ೞҊ CDN క. - ੋૐ ӝמ CloudFront Private contents ӝמਸ ࢎਊೞ. - WAS 2ѐ, Worker 1ѐ, Staging 1ѐ, View WAS 2ѐ, Redis 2ѐ - DB Multi-AZ, Slave 1ѐ, Log DB, Reading DB, Read DB - S3, CloudFront, CloudWatch
25 ഥਗ: 5݅ݺ
26 ഥਗ: 10݅ݺ - ElasticCache - оՔ Redis োѾ ՐӝҊ
ೞӝ ߣѢ܂֎. - ࠺ਊب ݆ ର উաפө ElasticCache о. - Push Worker - Push ࠁղ۰פө ցޖ וܻ. ߊ࣠ SNSॳ. - ࢎۈ ݆ইפө ӝޖ ঌܿߊ࣠ب ࡆࣁ. Push ਊ Worker. - ࢲ࠺झ Scale out - Push ࠁղפө DBࠗೞо ழ֎. Slave୶о. - DB Slave୶оೞפө WASલ֎. WAS ૐо. - WASૐоೞפө ۽Ӓ ࠁӝ য۵. ۽Ӓ ࣻӝ ୶о. - WAS 8ѐ, Worker 2ѐ, Staging 2ѐ, View WAS 2ѐ, ۽Ӓ ࣻӝ - DB Multi-AZ, Slave 2ѐ, Log DB, Reading DB, Read DB - S3, CloudFront, CloudWatch, ElasticCache, SNS
27 ഥਗ: 10݅ݺ
28 ഥਗ: 20݅ݺ - ୭ച - ۽٘о оՔ
וܽѱ ֎. - ೳ! 30MBܻ ॉ֎ੌ(?). - ীࢲ ୷ೞҊ ৢܽҊ ೮݅, पࣻ ೡࣻ ਵפ ٮ۽ ೧. - ݽٚ ܳ ߸ജೞ ݈Ҋ, ਃೡ ٸ ਗೞח ২࣌ਵ۽ ߸ഋೡ ࣻ ب۾ ೞ. - ۡٸ Lambdaܳ ॳݶ ୭Ҋ. - WAS 8ѐ, Worker 2ѐ, Staging 2ѐ, View WAS 2ѐ, ۽Ӓ ࣻӝ - DB Multi-AZ, Slave 2ѐ, Log DB, Reading DB, Read DB - S3, CloudFront, CloudWatch, ElasticCache, SNS - Lambda, API Gateway
29 ഥਗ: 20݅ݺ
30 അ - TDD - ߓನ݅ ೞݶ য়ܨ աҊ গо
ߊࢤೞ֎. - పझী दрب য়ې ѦܻҊ, ־ۅغח పझب Ҋ. - CI ی API tester ୶о - ࠺ਊ ޙઁ۽ CloudFlare৬ CloudFront۽ CDN ച - WAS 8ѐ, Worker 2ѐ, Staging 2ѐ, View WAS 2ѐ, ۽Ӓ ࣻӝ - API tester, Travis CI - DB Multi-AZ, Slave 2ѐ, Log DB, Reading DB, Read DB - S3, CloudFlare, CloudFront, CloudWatch, ElasticCache, SNS - Lambda, API Gateway
31 അ
32 ഥਗ: 100݅ݺ غӝ ী ೡੌ - ߎী ࢎۈ উয়פө,
ষաѱ ৢ ࣻ ਵפ Auto scailing - ߓನо ؊ एਕઉঠ ೞפө Front ৬ Backend ա־Ҋ Docker! - ࢶޛೣҗ ഥਗࣻ ૐо۽ DB ؘఠо ؊ ऺӝ ী Sharding ળ࠺ - ਗ טܻӝ
33 THANK YOU хࢎפ