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
Managing queues with Laravel Horizon (AFUP)
Search
Freek Van der Herten
May 17, 2019
Technology
0
940
Managing queues with Laravel Horizon (AFUP)
Freek Van der Herten
May 17, 2019
Tweet
Share
More Decks by Freek Van der Herten
See All by Freek Van der Herten
Uncharted packages (Laravel Live Denmark)
freekmurze
0
210
I shall define this only once
freekmurze
0
410
An Introduction to Snapshot testing
freekmurze
0
500
Event Sourcing In Laravel
freekmurze
0
250
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
820
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
860
A practical look at multitenancy in Laravel
freekmurze
1
360
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
730
Highlights Flare codebase (Laracon online)
freekmurze
0
520
Other Decks in Technology
See All in Technology
開発と脆弱性と脆弱性診断についての話
su3158
1
1.1k
実践アプリケーション設計 ③ドメイン駆動設計
recruitengineers
PRO
2
190
ZOZOTOWNフロントエンドにおけるディレクトリの分割戦略
zozotech
PRO
17
5.3k
Webアクセシビリティ入門
recruitengineers
PRO
1
250
Yahoo!広告ビジネス基盤におけるバックエンド開発
lycorptech_jp
PRO
1
270
AIエージェントの開発に必須な「コンテキスト・エンジニアリング」とは何か──プロンプト・エンジニアリングとの違いを手がかりに考える
masayamoriofficial
0
390
「守る」から「進化させる」セキュリティへ ~AWS re:Inforce 2025参加報告~ / AWS re:Inforce 2025 Participation Report
yuj1osm
1
130
モダンフロントエンド 開発研修
recruitengineers
PRO
2
320
知られざるprops命名の慣習 アクション編
uhyo
10
2.5k
ドキュメントはAIの味方!スタートアップのアジャイルを加速するADR
kawauso
3
360
Backboneとしてのtimm2025
yu4u
4
1.5k
攻撃と防御で実践するプロダクトセキュリティ演習~導入パート~
recruitengineers
PRO
1
190
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
525
40k
Producing Creativity
orderedlist
PRO
347
40k
Embracing the Ebb and Flow
colly
87
4.8k
Being A Developer After 40
akosma
90
590k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
The World Runs on Bad Software
bkeepers
PRO
70
11k
Thoughts on Productivity
jonyablonski
69
4.8k
For a Future-Friendly Web
brad_frost
179
9.9k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
Code Review Best Practice
trishagee
70
19k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Transcript
Supercharging queues in Laravel with Horizon
About me Freek Van der Herten Partner & developer at
Spatie @freekmurze murze.be ohdear.app
fullstackeurope.com
Open Source Software
Spatie creates a lot of it ± 200 packages on
Packagist ± 2,300,000 downloads a month ± 35,000,000 total downloads All Postcardware!
Highlights Laravel Popular laravel-backup laravel-medialibrary laravel-permission
Highlights PHP Popular browsershot crawler fractalistic image-optimizer
spatie.be/open-source
spatie.be/open-source/postcards
Let's talk about queues
This talk Tiny bit of theory Queueing basics in Laravel
Introducing Horizon
Theory
Why do we use queues? Users want fast responses Intensive
tasks shouldn't be done inside the request Move work to a queue
WORK TIME TIME REQUEST REQUEST WORK
ONE QUEUE MULTIPLE QUEUES Queue 1 Queue 2 Queue 3
TIME TIME WORK A WORK A WORK B WORK C WORK B WORK C
Queues in Laravel
Feature rich Priorities Chaining Delays Testable
Driver based Database, Redis, Beanstalkd, Amazon SQS Can create your
own driver Sync driver is handy locally
Demo
Introducing Horizon
Free first party package Dashboard for queues Scheduler Code driven
configuration Laravel & Redis specific
Demo
In closing
Summary Feature rich Driver based Easy testable Horizon is a
powerful tool to manage jobs
Resources github.com/spatie/laravel-queues-demo-app laravel.com/docs/5.8/queues laravel.com/docs/5.8/horizon ohdear.app/blog/how-to-size-scale-your-laravel-queues
Thank you! speakerdeck.com/freekmurze/horizon-afup spatie.be/open-source murze.be ohdear.app fullstackeurope.com