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
ライブストリーミングサービスの負荷を捌くためにした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
410
1
Share
ライブストリーミングサービスの負荷を捌くためにしたNのこと
YAPC::Asia Hachioji 2016 mid in Shinagawaで発表した資料
Keigo AOKI
July 03, 2016
More Decks by Keigo AOKI
See All by Keigo AOKI
Potential EM 制度を始めた理由、そして2年後にやめた理由 - EMConf JP 2025
hoyo
4
5.7k
【MediaLive利用事例】ライブ授業配信システムのリニューアル / Renewal of the live lesson streaming system
hoyo
0
350
20140822_DITS4LT
hoyo
1
550
20140125_Titanium新年会LT
hoyo
0
450
20130126_Titanium新年会LT
hoyo
0
580
Other Decks in Technology
See All in Technology
AWS Transform CustomでIaCコードを自由自在に変換しよう
duelist2020jp
0
160
AgentCore Managed Harness を使ってみよう
yakumo
2
250
巨大プラットフォームを進化させる「第3のROI」
recruitengineers
PRO
2
1.4k
マルチプロダクトの信頼性を効率良く保っていくために
kworkdev
PRO
0
180
Arcana: Production-Ready RAG in Elixir @ ElixirConf EU 2026
georgeguimaraes
0
120
20260428_Product Management Summit_Loglass_JoeHirose
loglassjoe
3
4k
データを"持てない"環境でのアノテーション基盤設計
sansantech
PRO
1
150
Class.new is all you need
riseshia
1
190
Keeping Ruby Running on Cygwin
fd0
0
180
「誰一人取り残されない」 AIエージェント時代のプロダクト設計思想 Product Management Summit 2026
mizushimac
1
1.8k
Scovilleモバイルエンジニア募集中.pdf
julienrudin
0
120
Pure Intonation on Browser: Building a Sequencer with Ruby
nagachika
0
170
Featured
See All Featured
The Pragmatic Product Professional
lauravandoore
37
7.2k
My Coaching Mixtape
mlcsv
0
110
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
430
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.4k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
160
How STYLIGHT went responsive
nonsquared
100
6.1k
Being A Developer After 40
akosma
91
590k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Design in an AI World
tapps
1
200
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.8k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
Believing is Seeing
oripsolob
1
120
Transcript
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