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
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
More Decks by Keigo AOKI
See All by Keigo AOKI
Potential EM 制度を始めた理由、そして2年後にやめた理由 - EMConf JP 2025
hoyo
4
6.2k
【MediaLive利用事例】ライブ授業配信システムのリニューアル / Renewal of the live lesson streaming system
hoyo
0
380
20140822_DITS4LT
hoyo
1
570
20140125_Titanium新年会LT
hoyo
0
470
20130126_Titanium新年会LT
hoyo
0
610
Other Decks in Technology
See All in Technology
野良MCPサーバーを排除せよ!MCPサーバーのガバナンス
yukiogawa
1
260
【Oracle AI SPOTLIGHT ウェビナー】事例から見る!なぜOCIが選ばれたのか ― AI時代のクラウド戦略を紐解く ―
oracle4engineer
PRO
1
100
Patterns in AI Driven Software Development
akosma
PRO
0
240
ビジネス部門からPOを迎えての半年間の進歩と課題
zozotech
PRO
0
150
AIコーディングエージェント開発_全体像
happysamurai294
0
110
局所最適は悪ではない。壊れているのは指標です。量と質を同時に見る先行指標の設計
recruitengineers
PRO
3
1.3k
(swiftc) NonCopyableとライフタイム修飾子
teamhimeh
0
140
キヨさん、67歳。AIコーディングエージェントに挑む
happysamurai294
0
110
なぜAI時代に技術記事を書くのか?どう書くのか? 〜bunの場合〜
kworkdev
PRO
0
150
「作れる」と「リリースできる」の間にあったもの── PdMを外して見えた、PdMがやるべき仕事/Buildable ≠ Shippable: What Removing the PM Taught Me About the PM’s Job
yappli_developers
0
320
Don't write the architecture only in the prompt.
neohsu
0
150
シンプルな設定ファイルで実現する AWS IAM Identity Center の ユーザー管理Terraformフレームワークを公開しました / Simplifying AWS IAM Identity Center User Management: An Open-Source Terraform Framework
yamaguchitk333
1
330
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Claude Code のすすめ
schroneko
67
230k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Making the Leap to Tech Lead
cromwellryan
135
10k
Speed Design
sergeychernyshev
33
2.2k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
Fireside Chat
paigeccino
43
4.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
How to make the Groovebox
asonas
2
2.5k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
610
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