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
mysql casual talks vol7
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ryoichi SEKIGUCHI
December 12, 2014
Programming
2.6k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
mysql casual talks vol7
Ryoichi SEKIGUCHI
December 12, 2014
More Decks by Ryoichi SEKIGUCHI
See All by Ryoichi SEKIGUCHI
非同期処理とは何なのか
ryopeko
0
160
functionalなアプローチで動的要素を排除する
ryopeko
1
4.5k
Ruby makes everything
ryopeko
0
180
正しく失敗しながら進むプロダクト開発/railsdm2018
ryopeko
10
6.2k
CircleCI を使って自動(ほぼ)でセキュリティアップデート / circleci meetup
ryopeko
4
620
Kaizen Platform でやっている Kaizen Week というイベントについて / kaize week tokyurubykaigi 10
ryopeko
2
1.2k
rubyhiroba
ryopeko
6
1.4k
devsumi2014-dena-bootcamp2014
ryopeko
40
65k
jtrk02
ryopeko
0
5.8k
Other Decks in Programming
See All in Programming
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
22
22k
Event is what happens
moro
2
420
mrbgem 三角測量 開発
ogom
0
240
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
130
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
200
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.1k
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.6k
The Rails Doctrine Decade
koic
2
570
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
Ghostty + Neovimで作る 透明でカッコ良い開発環境
j341nono
0
170
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
370
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
170
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
400
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
470
Tell your own story through comics
letsgokoyo
1
1.1k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
500
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
280
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
880
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Transcript
Ruby(Rails)͔Β ΧδϡΞϧʹ Q4M Λ ͑ΔԿ͔Λ࡞͓ͬͨ ؔޱ྄Ұ ! ryopeko " ryopeko
.Z42-DBTVBMUBMLTWPM
ؔޱ ྄Ұ # ryopeko " ryopeko • ύʔϑΣΫτRuby ڞஶऀ •
σϒαϛ2014εϐʔΧʔ • ϕετεϐʔΧʔ 2Ґड • ࠷ۙਓ͔ؒͨͪΒෳDBͱݺ Ε͍ͯΔ
None
ΈΜͳେ͖ ΩϡʔϑΥʔΤϜʂʂ̍
ϧϏʔͰ͏ʹ ͪΐͬͱͭΒ͍…
ϧϏʔͷੈքͰ Redis ͬͯΔΑ
None
shinq # SZPQFLPTIJOR
None
shinq ActiveJob ͷ ΠϯλʔϑΣʔεΛͬͨϥΠϒϥϦ
ActiveJobʁ
None
ActiveJob • Rails4.2 ͔ΒೖΔ༧ఆͷΩϡʔΞμϓλʔ • ΩϡʔϥΠϒϥϦΛࠩ͠ସ͍͑͢͠Α ͏ʹ͢Δͷ • daemon ࣮ߦ֤ࣗؤுͬͯ
shinq ͷ͍ํ
queue table Λ࡞Δ
None
Worker Class Λ࡞Δ
None
generator ͋ΔΑʂ
None
None
enqueue ͢Δ
None
dequeue ͢Δ
None
ίϚϯυϥΠϯΦϓγϣϯ
ίϚϯυϥΠϯΦϓγϣϯ • —worker ࣮ߦ͢Δ worker name • —process fork ͢Δϓϩηε
• —queue-timeout queue_wait ͰλΠϜ Ξτ͢Δඵ • -d, —daemon daemon ͱ࣮ͯ͠ߦ • etc…
·ͱΊ
·ͱΊ • Ruby(Rails) Ͱ Q4M ΛΧδϡΞϧʹ ѻ͏Կ͔Λ࡞ͬͨΑ • ϞμϯͳΠϯλʔϑΣʔεͩΑ •
Ϟμϯ͗ͯ͢4.2͡Όͳ͍ͱ͑ͳ͍ Α(ࠓRC2) • # ryopeko/shinq ͩΑ