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
1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Managing queues with Laravel Horizon (AFUP)
Freek Van der Herten
May 17, 2019
More Decks by Freek Van der Herten
See All by Freek Van der Herten
Uncharted packages (ode aan de code)
freekmurze
0
72
Uncharted packages (Laravel Live Denmark)
freekmurze
0
270
I shall define this only once
freekmurze
0
490
An Introduction to Snapshot testing
freekmurze
0
590
Event Sourcing In Laravel
freekmurze
0
290
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
890
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
930
A practical look at multitenancy in Laravel
freekmurze
1
410
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
800
Other Decks in Technology
See All in Technology
平文パスワードはログに“残り” ── 肝心の侵入は“痕跡すら残らない”
kuroneko13
0
130
Master Dataグループ紹介資料
sansan33
PRO
1
4.8k
国家プロジェクトを支える「さくらONE」 大規模LLM開発におけるGPU障害を乗り越えるクラスター運用戦略
gpuunite_official
0
290
IHV like なユースケースへのOpenID Connect 関連仕様の適用事例
optim
0
280
AIエージェントのためのデータ設計
daiz21
0
250
AIに持続⼒を与える 判断の⻑期記憶設計
eiei114
1
710
AI開発に用いられるHPC技術について
gpuunite_official
0
290
AI時代の「OAuth認証」にどう物申すか?(OAuth/OIDC Numa (Immersion) Workshop 2026)
oidfj
PRO
0
260
Windows の互換機能 - 古いプログラムはなぜ動作できるのか
murachiakira
PRO
0
110
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3.2k
Digitization部 紹介資料
sansan33
PRO
2
7.7k
LLMアプリ、 雰囲気で運用してませんか? 〜LLMOpsの現在地〜
taka_aki
1
100
Featured
See All Featured
How to make the Groovebox
asonas
2
2.3k
Raft: Consensus for Rubyists
vanstee
141
7.6k
Facilitating Awesome Meetings
lara
57
7.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Making the Leap to Tech Lead
cromwellryan
135
10k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
A Soul's Torment
seathinner
6
3.5k
Exploring anti-patterns in Rails
aemeredith
3
470
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
Faster Mobile Websites
deanohume
310
32k
Amusing Abliteration
ianozsvald
1
260
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