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
阿澄佳奈と昇竜拳
Search
h3poteto
May 30, 2016
Programming
1
460
阿澄佳奈と昇竜拳
h3poteto
May 30, 2016
Tweet
Share
More Decks by h3poteto
See All by h3poteto
EKS on Fargateは最高のJob基盤 / jawsug_bgnr
h3poteto
1
880
Kubernetes上で単発のジョブを実行するkube-jobというツールを作った / kubernetesmeetuptokyo22
h3poteto
6
7.6k
Electronによるアプリケーション開発事情2018 / builderscon2018
h3poteto
9
9.3k
fluentdサーバをchefで構築するの辛かったけどDockerも別に救世主じゃなかった / tokyu ruby kaigi 12
h3poteto
0
4k
ECSのサービスをslack botでデプロイする // ecs-goploy
h3poteto
1
4.8k
まだRailsで消耗してるの?
h3poteto
7
4.7k
Other Decks in Programming
See All in Programming
意外とフォントが大事だった話 / Font Issues on Internationalization
fumi23
0
110
Pythonで改めて考える「クラス(class)」の使いどころ
os1ma
2
710
unique パッケージから学ぶ interning と weak reference @ Asakusa.go#3
karamaru
2
810
Shinjuku.rb#95:心の技術書紹介
free_world21
1
110
Ruby Parser progress report 2024
yui_knk
2
230
Amazon Neptuneで始める初めてのグラフDB ー グラフDBを使う意味を考える ー
satoshi256kbyte
2
260
Architecture Decision Record (ADR)
nearme_tech
PRO
1
690
XStateでReactに秩序を与えたい
gizm000
0
730
LangChainでWebサイトの内容取得やGitHubソースコード取得
shukob
0
160
2024 컴포즈 정원사
jisungbin
0
150
Rubyとクリエイティブコーディングの輪の広がり / The Growing Circle of Ruby and Creative Coding
chobishiba
1
270
サーバーレスで負荷試験!Step Functions + Lambdaを使ったk6の分散実行
shuntakahashi
6
1.6k
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
85
5.6k
Thoughts on Productivity
jonyablonski
66
4.2k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
How to name files
jennybc
75
98k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
36
1.7k
WebSockets: Embracing the real-time Web
robhawkes
59
7.3k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.2k
Writing Fast Ruby
sferik
623
60k
No one is an island. Learnings from fostering a developers community.
thoeni
18
2.9k
Making the Leap to Tech Lead
cromwellryan
128
8.8k
Design by the Numbers
sachag
277
19k
Transcript
ѨՂಸͱঢཽݓ @h3_poteto
About me • Akira Fukushima • github: h3poteto • twitter:
@h3_poteto • like: ѨՂಸ
ѨՂಸ༏Ͱ͢
ѨՂಸͷΛຖฉ͖͍ͨ
botʹ͠Α͏ • youtubeͱχίχί ಈըΛεΫϨΠϐϯ ά • ѨՂಸͷಈըΛ DBʹஷΊͯͭͿ͘
None
ױऀ
Ѩපױऀ͕ԿΛݟ͍ͯΔͷ ͔Γ͍ͨ
WebαʔϏεʹ͠Α͏
ѨͷՄࢹԽ
Ѩ [%]= ʮѨʯΛؚΉπΠʔτ / શπΠʔτ ʢ1ຖʹࢉग़ʣ
Ͳ͏ͬͯࢉग़͠Α͏ʁ
UserstreamͰશͯه͢Δ • UserstreamͰπΠʔτΛࢹ • ͦͷࡍʹඇಉظॲཧͰѨϫʔυநग़ɼ DBอଘ • ࣍όονͰूܭ
UserstreamͰશͯه͢Δ • UserstreamͰπΠʔτΛࢹ • ͦͷࡍʹඇಉظॲཧͰѨϫʔυநग़ɼ DBอଘ • ࣍όονͰूܭ
sidekiqͰඇಉظॲཧ
Redis͕ߴ͍
πΠʔτ͕૿͖͑ͯͨΒ ϝϞϦΒͳ͍
shoryuken
shoryuken • sidekiqʹࣅ͍ͯΔʢϚϧνεϨουʣ • ΩϡʔʹAWS SQSΛ͏
SQS ͍҆ʂ
sidekiqͱൺͯ • sidekiqͱ͋Μ·ΓมΘΒͳ͍ • ϦτϥΠͷઃఆ͚ͩSQSʹґଘ͢ΔͷͰෳࡶ • sidekiq΄Ͳͷख़ײ͕ͳ͍ʢΑ͘PullRequestૹΓͨ ͘ͳΔʣ • SQSͷϝοηʔδʹλΠϜΞτ͕͋ΔͷͰ࣌ؒͷ͔
͔ΔॲཧΛ͢Δͱ͖ҙ
خ͍͠ͱ͜Ζ • SQS͕͍҆ • δϣϒ͕૿͑ͯϝϞϦͷ͜ͱؾʹ͠ͳ͘ ͍͍ͯ
Tips • ϦτϥΠִؒͷઃఆSQSͷVisibility TimeoutͰཧ͢Δ • ϦτϥΠճͷઃఆSQSͷ DeadLetterQueueΛ͏ • ϩʔΧϧ։ൃͰfake_sqsͱ͍͏gem͕ศར
Redisʹ͖ͨΒ ͬͯΈ͍ͯͩ͘͞
͓·͚ • exception notificationͰshoryukenϫʔΧʔ ͷྫ֎Λݕग़͢Δgem