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
Laravel Queue の運用管理 / laravel-queue-20190318
Search
Masato Igarashi
March 18, 2019
Technology
3
670
Laravel Queue の運用管理 / laravel-queue-20190318
Masato Igarashi
March 18, 2019
Tweet
Share
Other Decks in Technology
See All in Technology
LangSmith×Webhook連携で実現するプロンプトドリブンCI/CD
sergicalsix
1
230
Glacierだからってコストあきらめてない? / JAWS Meet Glacier Cost
taishin
1
160
Lazy application authentication with Tailscale
bluehatbrit
0
210
What’s new in Android development tools
yanzm
0
310
関数型プログラミングで 「脳がバグる」を乗り越える
manabeai
1
190
事業成長の裏側:エンジニア組織と開発生産性の進化 / 20250703 Rinto Ikenoue
shift_evolve
PRO
2
21k
SaaS型なのに自由度の高い本格CMSでサイト構築と運用のコスパ&タイパUP! MovableType.net の便利機能とユーザー事例のご紹介
masakah
0
110
United Airlines Customer Service– Call 1-833-341-3142 Now!
airhelp
0
170
いつの間にか入れ替わってる!?新しいAWS Security Hubとは?
cmusudakeisuke
0
120
Should Our Project Join the CNCF? (Japanese Recap)
whywaita
PRO
0
340
ビギナーであり続ける/beginning
ikuodanaka
3
750
生成AI活用の組織格差を解消する 〜ビジネス職のCursor導入が開発効率に与えた好循環〜 / Closing the Organizational Gap in AI Adoption
upamune
7
5.2k
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
234
140k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
48
2.9k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Being A Developer After 40
akosma
90
590k
Practical Orchestrator
shlominoach
189
11k
A Modern Web Designer's Workflow
chriscoyier
695
190k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Into the Great Unknown - MozCon
thekraken
40
1.9k
[RailsConf 2023] Rails as a piece of cake
palkan
55
5.7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.5k
Mobile First: as difficult as doing things right
swwweet
223
9.7k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.4k
Transcript
-BSBWFM2VFVFͷӡ༻ཧ ޒेཛྷਖ਼ਓגࣜձࣾΦʔϓϯϩδ -BSBWFM7VFKTษڧձ
ޒेཛྷਖ਼ਓ!NJHST גࣜձࣾΦʔϓϯϩδ$50 ຊ͔࣌Β࢜ొࢁڝΤϯτϦʔ
γϯϓϧͰ͍উखͷྑ͍ ྲྀΞτιʔγϯάϓϥοτϑΥʔϜ ϞϊΛ༬͚ͯൃૹߦΛ͍ͨ͠ՙओاۀ͞·ͱ ݿɾૹاۀ͞·Λ ΫϥυܕͷγεςϜͰͭͳ͍Ͱ͍·͢ɻ Φʔϓϯϩδͱʁ
ٕज़ελοΫ https://qiita.com/migrs/items/dab171ee613f0c278596 ΦʔϓϯϩδΛࢧ͑Δٕज़ʢ൛ʣ
δϣϒͷجຊ ίϚϯυΫΤϦ $PNNBOE2VFSZ3FTQPOTJCJMJUZ4FHSFHBUJPO $234
ಡΈࠐΈ ҰൠతͳॲཧͷྲྀΕ Web Command Write Processed Web Query Read Result
ॻ͖ࠐΈ DB DB
$234 ͯ͢ͷॻ͖ࠐΈδϣϒͰߦ͏ Job Web Command Enqueue Accepted Dequeue Write Processed
Pusher Processed Queue DB
public function updateItem($id, Request $request) { $item = Item::findOrFail($id); $item->name
= $request->input('name'); $item->save(); } public function updateItem($id, Request $request) { dispatch(new UpdateItem($id, [ 'name' => $request->input('name'); ])); } ίʔυͷมԽ
δϣϒͷεςʔλεཧ -BSBWFM)PSJ[POͱ-BSBWFM5FMFTDPQF ͕ͯ͢δϣϒͰॲཧ͞Ε͍ͯΔͷͰ ͦΕͳΓʹͪΌΜͱཧ͍ͨ͠
-BSBWFM)PSJ[PO
-BSBWFM5FMFTDPQF
)PSJ[POͱ5FMFTDPQFͷҧ͍ )PSJ[PO 5FMFTDPQF 4VNNBSZ 3FEJTΩϡʔઐ༻ͷ ϞχλϦϯάπʔϧ -BSBWFMͷঢ়ଶΛѲͰ͖Δ ։ൃ༻σόοάπʔϧ 5BSHFU&OW 1SPEVDUJPO
%FWFMPQNFOU 7FSTJPO -ʙ -ʙ 2VFVF 3FEJTPOMZ "MM JODMVEF4ZOD 3FUSZ'BJMFE+PC ˓ ☓ 4IPX+PC4UBUVT ˚ 3FDFOUPOMZ ˓
ΦʔϓϯϩδͰ ֤δϣϒͷεςʔλεཧ ୭͕ ͍ͭ Ͳ͜Ͱ ԿΛ ͬͨͷ͔
-BSBWFM5FMFTDPQF
-BSBWFM5FMFTDPQF
ΦʔϓϯϩδͰ 'BJMFE+PCͷ࠶࣮ߦ
-BSBWFM)PSJ[PO
͕ͨͪٻΊͯΔͷ )PSJ[PO 5FMFTDPQF ཉ͍͠ͷ 4VNNBSZ ϞχλϦϯά σόοά ϞχλϦϯά ϩΪϯά 5BSHFU&OW
1SPEVDUJPO %FWFMPQNFOU 1SPEVDUJPO 7FSTJPO -ʙ -ʙ - 2VFVF 3FEJTPOMZ "MM JODMVEF4ZOD "MM 3FUSZ'BJMFE +PC ˓ ☓ ˓ 4IPX+PC 4UBUVT ˚ 3FDFOUPOMZ ˓ ˓
·ͱΊ ͯ͢ͷߋ৽ॲཧΛδϣϒͰ࣮͢Δ͜ͱͰɾɾɾ ✓εέʔϥϒϧ ✓ؔ৺ࣄͷ ✓ͦΕͧΕݸผʹεέʔϦϯάͰ͖Δ δϣϒͷ࣮ߦهΛ͢͜ͱͰɾɾɾ ✓࣮ূՄೳͳࠪূΛͤΔ ✓τϥϒϧγϡʔςΟϯά͍͢͠