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
910
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
190
I shall define this only once
freekmurze
0
390
An Introduction to Snapshot testing
freekmurze
0
480
Event Sourcing In Laravel
freekmurze
0
240
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
790
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
830
A practical look at multitenancy in Laravel
freekmurze
1
340
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
710
Highlights Flare codebase (Laracon online)
freekmurze
0
480
Other Decks in Technology
See All in Technology
コスト最適重視でAurora PostgreSQLのログ分析基盤を作ってみた #jawsug_tokyo
non97
1
610
ここはMCPの夜明けまえ
nwiizo
30
11k
Bazel for Ruby (RubyKaigi 2025)
p0deje
0
120
読んで学ぶ Amplify Gen2 / Amplify と CDK の関係を紐解く #jawsug_tokyo
tacck
PRO
1
250
Notion x ポストモーテムで広げる組織の学び / Notion x Postmortem
isaoshimizu
1
120
クォータ監視、AWS Organizations環境でも楽勝です✌️
iwamot
PRO
1
340
3D生成AIのための画像生成
kosukeito
1
210
Running JavaScript within Ruby
hmsk
3
370
Рекомендации с нуля: как мы в Lamoda превратили главную страницу в ключевую точку входа для персонализированного шоппинга. Данил Комаров, Data Scientist, Lamoda Tech
lamodatech
0
790
Web Intelligence and Visual Media Analytics
weblyzard
PRO
1
5.8k
PostgreSQL Log File Mastery: Optimizing Database Performance Through Advanced Log Analysis
shiviyer007
PRO
0
130
バックオフィス向け toB SaaS バクラクにおけるレコメンド技術活用 / recommender-systems-in-layerx-bakuraku
yuya4
5
570
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.7k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Speed Design
sergeychernyshev
29
900
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Done Done
chrislema
183
16k
Optimizing for Happiness
mojombo
377
70k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Embracing the Ebb and Flow
colly
85
4.7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.2k
Code Reviewing Like a Champion
maltzj
522
40k
Visualization
eitanlees
146
16k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
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