Queue management and insights.
A demo of how Laravel Horizon can help you define and monitor the queues in your application.
The best demo for Laravel Horizon is for you to actually play around and explore it yourself, you can do this by spinning up Laravel locally and installing it.
Generally, Horizon should be locked away behind some authentication because it reveals details about the applications queues, however, because I'm a semi trusting person, I have left it open in LaraPi to allow you to get hands on with a real world example.
On that note, I will be watching and if I find it being abused, I will lock it away!
Trigger a scenario and see it in the Horizon dashboard.
Running request, please wait...
A quick walkthrough of how this works.
My assumptions, at the very least, are that you have Laravel setup and working with Redis.
There are essentially three commands to get Horizon installed and running.
composer require laravel/horizonphp artisan horizon:install
Horizon also provides metrics on your queues, to get this working, you should run a scheduled command.
use Illuminate\Support\Facades\Schedule;Schedule::command('horizon:snapshot')->everyFiveMinutes();
Now, head over to /horizon
in your browser and you should see the dashboard,
for more details on how to configure Horizon further, see the links below.
A few links to supporting resources.