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
510
阿澄佳奈と昇竜拳
h3poteto
May 30, 2016
Tweet
Share
More Decks by h3poteto
See All by h3poteto
EKS on Fargateは最高のJob基盤 / jawsug_bgnr
h3poteto
1
990
Kubernetes上で単発のジョブを実行するkube-jobというツールを作った / kubernetesmeetuptokyo22
h3poteto
6
8.4k
Electronによるアプリケーション開発事情2018 / builderscon2018
h3poteto
9
10k
fluentdサーバをchefで構築するの辛かったけどDockerも別に救世主じゃなかった / tokyu ruby kaigi 12
h3poteto
0
4.7k
ECSのサービスをslack botでデプロイする // ecs-goploy
h3poteto
1
5.4k
まだRailsで消耗してるの?
h3poteto
7
4.8k
Other Decks in Programming
See All in Programming
Testing Trophyは叫ばない
toms74209200
0
890
Introducing ReActionView: A new ActionView-compatible ERB Engine @ Rails World 2025, Amsterdam
marcoroth
0
710
Updates on MLS on Ruby (and maybe more)
sylph01
1
180
もうちょっといいRubyプロファイラを作りたい (2025)
osyoyu
1
450
How Android Uses Data Structures Behind The Scenes
l2hyunwoo
0
480
Rancher と Terraform
fufuhu
2
550
Deep Dive into Kotlin Flow
jmatsu
1
360
Improving my own Ruby thereafter
sisshiki1969
1
160
Processing Gem ベースの、2D レトロゲームエンジンの開発
tokujiros
2
130
ファインディ株式会社におけるMCP活用とサービス開発
starfish719
0
2k
ぬるぬる動かせ! Riveでアニメーション実装🐾
kno3a87
1
230
基礎から学ぶ大画面対応(Learning Large-Screen Support from the Ground Up)
tomoya0x00
0
3.3k
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
268
13k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.7k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
The Pragmatic Product Professional
lauravandoore
36
6.9k
Balancing Empowerment & Direction
lara
3
620
Designing for humans not robots
tammielis
253
25k
Visualization
eitanlees
148
16k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
The Art of Programming - Codeland 2020
erikaheidi
56
13k
Scaling GitHub
holman
463
140k
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