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
機械学習を扱うプラットフォーム開発と運用事例
lycorptech_jp
PRO
0
210
クラウドセキュリティを支える技術と運用の最前線 / Cutting-edge Technologies and Operations Supporting Cloud Security
yuj1osm
2
300
AWSを利用する上で知っておきたい名前解決のはなし(10分版)
nagisa53
9
2.8k
Kubernetes における cgroup v2 でのOut-Of-Memory 問題の解決
pfn
PRO
0
470
dbt開発 with Claude Codeのためのガードレール設計
10xinc
1
940
【実演版】カンファレンス登壇者・スタッフにこそ知ってほしいマイクの使い方 / 大吉祥寺.pm 2025
arthur1
1
510
RSCの時代にReactとフレームワークの境界を探る
uhyo
10
3.2k
下手な強制、ダメ!絶対! 「ガードレール」を「檻」にさせない"ガバナンス"の取り方とは?
tsukaman
2
410
20250910_障害注入から効率的復旧へ_カオスエンジニアリング_生成AIで考えるAWS障害対応.pdf
sh_fk2
3
190
シークレット管理だけじゃない!HashiCorp Vault でデータ暗号化をしよう / Beyond Secret Management! Let's Encrypt Data with HashiCorp Vault
nnstt1
3
230
初めてAWSを使うときのセキュリティ覚書〜初心者支部編〜
cmusudakeisuke
1
170
テストを軸にした生き残り術
kworkdev
PRO
0
190
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
187
54k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
111
20k
Into the Great Unknown - MozCon
thekraken
40
2k
Docker and Python
trallard
45
3.5k
The World Runs on Bad Software
bkeepers
PRO
70
11k
Writing Fast Ruby
sferik
628
62k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
30
9.6k
Embracing the Ebb and Flow
colly
87
4.8k
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