Posts Learn Components Snippets Categories Tags Tools About
/

How to Easily Increase Laravel Horizon Worker Process

Learn how to easily increase the Laravel Horizon worker process locally without changing the configuration file

Created on Sep 18, 2021

422 views

When running Laravel Horizon worker from the terminal "php artisan horizon" it typically will only create 1 worker/process. To easily start more worker processes you can open up a new terminal and call the "php artisan horizon" again.
php artisan horizon
Now when you have many queues, the workload will be shared amongst your worker/process.

Before: Laravel Horizon 1 Process/Worker


Laravel Horizon 1 worker/process

After: Laravel Horizon 2 Process/Worker


Now it will spawn a new process and the workload will be shared.
Laravel Horizon 2 worker/process

If you find this snippet helpful do share them with your friends, cheers.

If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️

)