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
Keigo AOKI
July 03, 2016
Technology
1
370
ライブストリーミングサービスの負荷を捌くためにしたNのこと
YAPC::Asia Hachioji 2016 mid in Shinagawaで発表した資料
Keigo AOKI
July 03, 2016
Tweet
Share
More Decks by Keigo AOKI
See All by Keigo AOKI
Potential EM 制度を始めた理由、そして2年後にやめた理由 - EMConf JP 2025
hoyo
2
1.3k
【MediaLive利用事例】ライブ授業配信システムのリニューアル / Renewal of the live lesson streaming system
hoyo
0
300
20140822_DITS4LT
hoyo
1
500
20140125_Titanium新年会LT
hoyo
0
400
20130126_Titanium新年会LT
hoyo
0
550
Other Decks in Technology
See All in Technology
プロダクトエンジニア 360°フィードバックを実施した話
hacomono
PRO
0
130
EDRの検知の仕組みと検知回避について
chayakonanaika
8
3.6k
Cloud Spanner 導入で実現した快適な開発と運用について
colopl
1
940
コンテナサプライチェーンセキュリティ
kyohmizu
1
120
2/18/25: Java meets AI: Build LLM-Powered Apps with LangChain4j
edeandrea
PRO
0
150
Perlの生きのこり - エンジニアがこの先生きのこるためのカンファレンス2025
kfly8
1
230
利用終了したドメイン名の最強終活〜観測環境を育てて、分析・供養している件〜 / The Ultimate End-of-Life Preparation for Discontinued Domain Names
nttcom
2
350
開発組織のための セキュアコーディング研修の始め方
flatt_security
3
2.8k
NFV基盤のOpenStack更新 ~9世代バージョンアップへの挑戦~
vtj
0
310
あれは良かった、あれは苦労したB2B2C型SaaSの新規開発におけるCloud Spanner
hirohito1108
2
820
クラウドサービス事業者におけるOSS
tagomoris
3
960
分解して理解する Aspire
nenonaninu
2
510
Featured
See All Featured
Designing for humans not robots
tammielis
250
25k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.1k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.7k
Rebuilding a faster, lazier Slack
samanthasiow
80
8.8k
It's Worth the Effort
3n
184
28k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
420
4 Signs Your Business is Dying
shpigford
182
22k
For a Future-Friendly Web
brad_frost
176
9.5k
Building Your Own Lightsaber
phodgson
104
6.2k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Bootstrapping a Software Product
garrettdimon
PRO
306
110k
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