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
ライブストリーミングサービスの負荷を捌くためにしたNのこと
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Keigo AOKI
July 03, 2016
Technology
440
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ライブストリーミングサービスの負荷を捌くためにしたNのこと
YAPC::Asia Hachioji 2016 mid in Shinagawaで発表した資料
Keigo AOKI
July 03, 2016
Transcript
30 slides
Concert crowd with stage lights | CC-BY: Vector Open Stock
https://www.vectoropenstock.com/vectors/preview/69124/concert-crowd-with-stage-lights ϥΠϒετϦʔϛϯάαʔϏεͷ ෛՙΛࡹͨ͘Ίʹͨ͠Nͷ͜ͱ ੨ ܒ߶ @hoyo1111 n = 3
@hoyo1111 ੨ܒ߶ʢ͓͖͚͍͋͝͏ʣ גࣜձࣾѮɹɹɹɹࣥߦһ$50ɹˡࠓͬͪ͜ͷ גࣜձࣾϗϤελɹදऔక 1)1FSͰ͢
ओʹ1IBMDPOͱ͍͏ϑϨʔϜϫʔΫΛ͍ͬͯ·͢ ͱͱӦۀͬͯ·ͨ͠ʢʣ ΤϯδχΞͱͯ͠ͷ࣮ܦݧѮ͕ࣾͰ͢
ࠓ͢͜ͱ ΤϯδχΞܦݧθϩͷਓ͕ؒελʔτΞοϓʹδϣΠϯͯ͠ɺ ؾ߹ͱࠜੑͰαʔϏεΛܧଓ͖ͤͯͨ͞Τϐιʔυ αʔϏεͷεέʔϧʹؔ͢Δͻͱͭͷࣄྫ ΠϯϑϥͷεέʔϧΛߟ͑Δͱ͖ʹ৺͕͚͍ͯΔ͜ͱ
Concert crowd with stage lights | CC-BY: Vector Open Stock
https://www.vectoropenstock.com/vectors/preview/69124/concert-crowd-with-stage-lights ϥΠϒετϦʔϛϯά
Concert crowd with stage lights | CC-BY: Vector Open Stock
https://www.vectoropenstock.com/vectors/preview/69124/concert-crowd-with-stage-lights
None
Concert crowd with stage lights | CC-BY: Vector Open Stock
https://www.vectoropenstock.com/vectors/preview/69124/concert-crowd-with-stage-lights ഭΓདྷΔόʔεττϥϑΟοΫ
ϥΠϒετϦʔϛϯάத
ࢹௌऀ͕૿͑ͳ͍Α͏ʹ ϓογϡ௨Λ͖͋ΒΊΔ҉ࠇظ n = 1 ʢ2લ͘Β͍ʣ
ଓ͚ͯݟΔϢʔβ͍ΔͷͰ 19࣌ΑΓ20࣌ɺ 20࣌ΑΓ21࣌ͷ΄͏͕ ΞΫηε͕૿͑Δ͜ͱ͕ଟ͍ तۀ5ʙ10લʹϓογϡ௨Λૹ͍͕ͬͯͨɺ ෛՙ͕ߴ͍ͷͱ͖҆ఆੑΛ༏ઌ͠ٽ͘ٽ͖͋͘ΒΊΔ͜ͱ…
ΞΫηε૿ͷରࡦ͕΄΅օແͰ ίϝϯτऔಘͷͨΊͷϙʔϦϯάͰ αʔόͷෛՙ͕૿େ͠ଓ͚Δ ʂ ͏ݶք ʂ
$BDIJOH-PBE#BMBODJOH
ElastiCache(Memcached)Λ͍ ίϝϯτऔಘͳͲҰ෦ʹ͍ͭͯ HTTPϦΫΤετ݁ՌΛΩϟογϡ ʂ
Ξοϓϩʔυͨ͠ը૾ͳͲ ֨ೲઌΛS3ʹมߋ ʂ ηογϣϯใͷอଘઌ Memcacheʹมߋ ELBΛಋೖ
n = 2 ৴͕ελʔτ͢ΔλΠϛϯά͚ͩ ҟৗͳ΄ͲԠ͕͘ͳΔ֦େظ ʢલ͘Β͍ʣ
ΞϓϦىಈ࣌ʹΫΤϦ͕ଟ࣮ߦ - Ϣʔβೝূ / ձһεςʔλε֬ೝ - ৴εέδϡʔϧදࣔ - ΞϓϦ௨ͷ༗ແ֬ೝɹͳͲ ʂ
͏ݶք ʂ
"NB[PO"VSPSB
ʂ RDSͷΤϯδϯΛAuroraมߋ ߋ৽ܥΫΤϦͷΈwriterʹ͚Δ ࢀরܥΫΤϦread replica
nginx php-fpm haproxy writer read replica read replica
n = 3 ͨΓతͩͬͨϩάऩू͕ αʔϏεͷΛ્͢Δసظ ʢ΄΅ݱࡏਐߦܗʣ
ϥΠϒετϦʔϛϯάࢹௌϢʔβͷ ΞΫηεϩάΛMySQLʹอଘ ࢹௌ։࢝ˠΛѲ͍ͨͨ͠Ί ϙʔϦϯάͷDBʹΫΤϦ͕Δ ͏ݶք ʂ
4FSWFSMFTT"SDIJUFDUVSF
ϩάͷҰ࣌อଘઌΛ DynamoDBʹมߋ͠ɺ طଘͷAPI Server͔Β LambdaʹॲཧΛҕৡ
ϩάͷҰ࣌อଘઌΛ DynamoDBʹมߋ͠ɺ طଘͷAPI Server͔Β LambdaʹॲཧΛҕৡ ৴ऴྃޙʹWorker͕ DynamoDBͷϨίʔυΛ దʹܗ͔ͯ͠Βอଘ
Concert crowd with stage lights | CC-BY: Vector Open Stock
https://www.vectoropenstock.com/vectors/preview/69124/concert-crowd-with-stage-lights େʹ͖ͯͨ͜͠ͱ
Concert crowd with stage lights | CC-BY: Vector Open Stock
https://www.vectoropenstock.com/vectors/preview/69124/concert-crowd-with-stage-lights #VJMEUP5IJOL
Γͳ͕Βߟ͑Δ ձࣾαʔϏεͷϑΣʔζʹΑͬͯબࢶແݶେ ࣍ʑͱ৽͍ٕ͠ज़͕ग़ͯ͘ΔͷͰ࠷దղৗʹมԽ͢Δ ͦͦɺεέʔϧͷ֦େΑΓ༏ઌ͖͢͜ͱ͕͍͍ͩͨଟ͍
Concert crowd with stage lights | CC-BY: Vector Open Stock
https://www.vectoropenstock.com/vectors/preview/69124/concert-crowd-with-stage-lights OBOJHJHBOUVNVNFSJTJOTJEFOUFT
ڊਓͷݞʹͷΔ ୳ͤࢁͷΑ͏ʹέʔεελσΟ͕ग़ͯ͘Δ શͯΛθϩ͔Β͍ͭͬͯ͘Δ༨༟ͳ͍ ελʔτΞοϓʹͱͬͯɺ࠷ઌͷҰา͋ͱΛาΉ͘Β͍͕ ͪΐ͏Ͳ͍͍ʢ߹ଟ͍ʣ ٕज़ͷΈ߹Θͤ࣍ୈͰʢ͋Δఔ·ͰʣͳΜͱ͔ͳΔ
Concert crowd with stage lights | CC-BY: Vector Open Stock
https://www.vectoropenstock.com/vectors/preview/69124/concert-crowd-with-stage-lights 8FSF)JSJOH
More Decks by Keigo AOKI
See All by Keigo AOKI
全社AI活用を「止めずに守る」— MCPプロキシとOpenTelemetryで作るAIガバナンス基盤
hoyo
0
31
Potential EM 制度を始めた理由、そして2年後にやめた理由 - EMConf JP 2025
hoyo
4
6.3k
【MediaLive利用事例】ライブ授業配信システムのリニューアル / Renewal of the live lesson streaming system
hoyo
0
390
20140822_DITS4LT
hoyo
1
580
20140125_Titanium新年会LT
hoyo
0
480
20130126_Titanium新年会LT
hoyo
0
610
Other Decks in Technology
See All in Technology
ノードが消える前提で設計する!Karpenterで金融システムを止めないためのノウハウ大全
daitak
1
250
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1.1k
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
110
プラガブルで宣言的なソフトウェアファクトリーを支えるTypeScript
timakin
4
940
Libérez Firefox et Thunderbird avec nos astuces
hellosct1
0
120
HTTP通信に使おうとすると実はめんどくさいfile_get_contents
maguroalternative
0
260
AWS re:Invent 2026 FSI Pre-Event Networking Night
junjikoide
0
230
Webメール開発を大幅に変えたJMAPというゲームチェンジャー
tascript
3
1.1k
個人ASを取得して、自宅Kubernetes上のVMをグローバルIPで公開した話
munenick
0
230
コピーオンライト型ファイルシステムと ランダム書き込み
sat
PRO
2
140
gradle-best-practices 使ってみた
mikanichinose
0
230
Taking back control of your AI development
inesmontani
PRO
0
310
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Building the Perfect Custom Keyboard
takai
2
970
The Curious Case for Waylosing
cassininazir
1
630
Code Review Best Practice
trishagee
74
20k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
1k
New Earth Scene 8
popppiees
5
2.9k
Prompt Engineering for Job Search
mfonobong
0
610
Digital Ethics as a Driver of Design Innovation
axbom
PRO
2
560
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
610