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
SHOWROOMの"最近"の負荷対策
Search
shimizu-masaya
August 31, 2018
Programming
1
11k
SHOWROOMの"最近"の負荷対策
Streaming Conference #4 @DeNA 登壇資料
shimizu-masaya
August 31, 2018
Tweet
Share
More Decks by shimizu-masaya
See All by shimizu-masaya
SHOWROOMのDB負荷に対するキャッシュ運用のカクカクシカジカ
otto0913
0
2.3k
SHOWROOMエンジニアの裏側
otto0913
0
570
SHOWROOMの泥臭い負荷対策
otto0913
1
2.1k
Other Decks in Programming
See All in Programming
推し活の ハイトラフィックに立ち向かう Railsとアーキテクチャ - Kaigi on Rails 2024
falcon8823
6
2.7k
GCCのプラグインを作る / I Made a GCC Plugin
shouth
1
160
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
190
讓數據說話:用 Python、Prometheus 和 Grafana 講故事
eddie
0
390
Ethereum_.pdf
nekomatu
0
370
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
340
シェーダーで魅せるMapLibreの動的ラスタータイル
satoshi7190
1
440
[PyCon Korea 2024 Keynote] 커뮤니티와 파이썬, 그리고 우리
beomi
0
120
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
630
Quine, Polyglot, 良いコード
qnighy
4
620
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
780
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
160
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
820
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
231
17k
Become a Pro
speakerdeck
PRO
25
5k
Agile that works and the tools we love
rasmusluckow
327
21k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Testing 201, or: Great Expectations
jmmastey
38
7.1k
[RailsConf 2023] Rails as a piece of cake
palkan
51
4.9k
We Have a Design System, Now What?
morganepeng
50
7.2k
A Philosophy of Restraint
colly
203
16k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Transcript
4)08300.5FDI4UVEJP SHOWROOMͷ”࠷ۙͷ”ෛՙରࡦ ࢤਫཧ࠸ 4USFBNJOH$POGFSFODF
ࣗݾհ wࢤਫཧ࠸ wࣾྺ w %F/"৽ଔೖࣾ w 4)08300.ग़ w࠷ۙͷ׆ಈ w ݄ͷࢀՃͨ͠ΞΠυϧΠϕϯτ݅
ϑΣε ϥΠϒެԋ ެԋ w ϑοταϧେձग़ճ %F/"ճ 4)08300.ճ w 4)*#6:"#*57"--&: w δίνϡʔ ࣄނҙ ͳ4)08300.ӡ༻
4)08300.ͱʁ wओʹԋऀ͕ࣗࣗͷσόΠεͰετϦʔ ϛϯά৴͢ΔΞϓϦέʔγϣϯ wԋऀૉਓ͔Βࠃຽత༗໊ਓɺόʔνϟ ϧ·Ͱ෯͘ଘࡏ ‣ ετϦʔϛϯά৴ͷࣝͷͳ͍༗໊ਓ͕ ‣ ҰਓͰ৴ΛελʔτͰ͖Δ wϥΠϒ&$͡Ί·ͨ͠
ࠓ͢͜ͱ w w લճͷొஃʢ4)08300.ͷటष͍ෛՙରࡦʣͰ͋Ε͚ͩͨ͠ͷʹؔΘΒͣɺ Ͱճτϥϒϧ͕ൃੜ wલఏ w 4)08300.ίϛϡχέʔγϣϯॏࢹͷͨΊɺԆ৴Λॏࢹ w 35.1ͱ)-4ʹΑΔ৴Λαϙʔτ
w ΦʔτεέʔϧͰؒʹ߹Θͳ͍ٸܹͳෛՙͱฃಆத w 8FSM "NPO .Z42- ʜ
ͳΜͰճτϥϒϧ ى͔ͨ͜͠ʁ
ͦΕͧΕݪҼ͕ҧ͍·͢ ݴ͍༁
τϥϒϧճ wࣄલใ͔Βաڈ࠷େڃͷϦΫΤετΛ༧ w࠷େڃͷܯռঢ়ଶͰͪߏ͑Δաڈ࠷େͷ૿Ճ෯ͰΦʔτεέʔϧ͕ ؒʹ߹Θͣʹ৴ো wػ͍ͯͨ͠ΤϯδχΞ͕खಈͰ૿ઃͯ͠ڧͰऩଋ
τϥϒϧճ w࡞ۀ࿙Ε wΦʔτεέʔϧʹΑΓऑͰऩଋ
͏ʙΜ
$%/৴͡Ί·ͨ͠ wͳΜͰࠓ·ͰΒͳ͔ͬͨͷ͔ʁ w ίϛϡχέʔγϣϯʹࢧো͕ग़ͳ͍Α͏ʹͳΔ͘ԆΛ͍ͨ͘͠ wຊʹίϛϡχέʔγϣϯʹࢧোͰΔͷ͔ʁ w ίϛϡχέʔγϣϯͷແ͍৴ w ਓ͕ଟ͗ͯ͢ίϛϡχέʔγϣϯཱ͕͠ͳ͍৴ Ԇͷࢫຯͷബ͍৴ͰτϥΠʂ
ͪΐͬͱٕज़తͳ w4)08300.ͷ༷ w 8&#αʔόʔ35.1 )-4 )-4 $%/ ͷ63-ΛҙͷΈ߹ΘͤͰΫϥ ΠΞϯτʹฦ͢͜ͱ͕Ͱ͖Δɻ w
ΫϥΠΞϯτΞϓϦ35.1 )-4ͷετϦʔϜΛ࠶ੜ͢Δ͕ɺαʔόʔ͔Β ยํ͔͠ฦ͞Εͳ͍߹ɺͦͷετϦʔϜΛ࠶ੜ͢Δ w৽͍͠ෛՙରࡦ wΫϥΠΞϯτʹ)-4 $%/ ͚ͩΛฦͯ͠$%/ͰෛՙΛΦϑϩʔυ ͤ͞Δ࡞ઓ
τϥϒϧճ w$%/৴ͷΈʹ͕͋ΓɺΦϦδϯαʔόʔ͕μϯ wػ͍ͯͨ͠ΤϯδχΞͰαʔόʔͷमਖ਼Λͯ͠ۓٸϦϦʔε wࣗମͷऩଋ·Ͱʹ
ʂ
ճͷτϥϒϧͷল wࣄલͷ֬ೝ͕͔ͬͨ w ͬͱෛՙΛݟࠐΜͩෛՙࢼݧ w৴αʔόʔམͪͳ͍ͱࢥ͍ࠐΜͰ͍ͨ w αʔόʔμϯ͠·͢ w μϯͤ͞ͳ͍Α͏ʹ͢Δ͜ͱͱಉ͘͡Β͍ɺμϯͨ࣌͠ͷରࡦΛߟ͓͑ͯ͘ ͖
࠷ۙͷ4)08300. wཧը໘͔Β৴63-ͷઃఆมߋͰ͖ΔػೳΛϦϦʔε wͷ͋ͬͨ$%/৴Λमਖ਼ CZ%F/"Πϯϑϥ wෛՙͷߴͦ͏ͳ৴ੵۃతʹ$%/৴ wԆͳ)-4Λׇத
ࠓ͔͋ͬͪʔʔʔʔʔ ճͷτϥϒϧ w%#αʔόʔͷෛՙཁҼʹΑΓ8&#αʔόʔͷԠো w Ұͭͷ৴ͷେنϦΫΤετूதͰͳ͘ɺେنͳϦΫΤετ͕ෳͷ ৴Ͱൃੜ͢Δύλʔϯ wෛՙରࡦͷઓ͍·ͩ·ͩ͜Ε͔Βͩʂ 8&# %# ৴αʔόʔ
$%/
·ͱΊ w4)08300.ͷߴτϥϑΟοΫ৴ʹର͢Δ࠷ۙͷෛՙରࡦΛհ w టष͞Λগ͠٫ w ͳΜͰԆ͕ඞཁ͔ࠓҰߟ͑Δ w αʔόʔμϯ͢Δͷͱ৺ಘΔ w μϯͨ͠߹ͷ෮چͪΌΜͱݕ౼͓ͯ͘͠
4)08300.ͷߴτϥϑΟοΫ͍ͯ͞Έ͍ͨਓʂ ϑοταϧ͍ͨ͠ਓʂ ืूͯ͠·͢ɻ IUUQTXXXXBOUFEMZDPNDPNQBOJFTTIPXSPPNMJWFQSPKFDUT