Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ryanmortier's avatar

What is the difference between multiple workers vs multiple processes?

In Laravel Forge you can set up your queue workers but one of the options is the number of processes. What is the difference between setting up 2 worker daemons with 1 process vs 1 worker daemon with 2 processes?

https://i.imgur.com/PZq8UMH.png

0 likes
4 replies
markotitel's avatar
Level 2

This is my understanding. Anyone feel free to correct me.

When you start one worker you setup connection ( redis, db, sqs... )

That said, multiple workers can have different setup for connection ( queue driver )

And when you set multiple processes for a single worker, than you may process more than one task from queue at the same time.

Someone experienced should correct/add if I am missing something.

EDIT: Here is stackoverflow answer. I beleive thats what I wrote up.

https://stackoverflow.com/questions/33211925/laravel-how-to-set-or-define-number-of-workers

ryanmortier's avatar

So if I understand that correctly, I should only start a second worker if I have a different queue or driver or something along those lines?

If I want multiple "workers" on one queue I should instead just use one worker and multiple processes?

Thanks.

Please or to participate in this conversation.