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
610
Laravel Queue の運用管理 / laravel-queue-20190318
Masato Igarashi
March 18, 2019
Tweet
Share
Other Decks in Technology
See All in Technology
なぜ今 AI Agent なのか _近藤憲児
kenjikondobai
4
1.4k
iOSチームとAndroidチームでブランチ運用が違ったので整理してます
sansantech
PRO
0
130
Application Development WG Intro at AppDeveloperCon
salaboy
0
190
OCI Vault 概要
oracle4engineer
PRO
0
9.7k
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
120
DMARC 対応の話 - MIXI CTO オフィスアワー #04
bbqallstars
1
160
ドメインの本質を掴む / Get the essence of the domain
sinsoku
2
150
障害対応指揮の意思決定と情報共有における価値観 / Waroom Meetup #2
arthur1
5
470
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
430
開発生産性を上げながらビジネスも30倍成長させてきたチームの姿
kamina_zzz
2
1.7k
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
250
Taming you application's environments
salaboy
0
190
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
880
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
How STYLIGHT went responsive
nonsquared
95
5.2k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
89
Practical Orchestrator
shlominoach
186
10k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Designing for humans not robots
tammielis
250
25k
The Pragmatic Product Professional
lauravandoore
31
6.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Building an army of robots
kneath
302
43k
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 ˓ ˓
·ͱΊ ͯ͢ͷߋ৽ॲཧΛδϣϒͰ࣮͢Δ͜ͱͰɾɾɾ ✓εέʔϥϒϧ ✓ؔ৺ࣄͷ ✓ͦΕͧΕݸผʹεέʔϦϯάͰ͖Δ δϣϒͷ࣮ߦهΛ͢͜ͱͰɾɾɾ ✓࣮ূՄೳͳࠪূΛͤΔ ✓τϥϒϧγϡʔςΟϯά͍͢͠