Friday, March 10, 2017

Laravel 5.2 Rednudant (Multiple) Queue Workers

I have multiple queue workers on my Laravel 5.2 project. I am running on AWS. I am using ECS. I am using Redis for my queue driver.

I would like to know..

If I have 2 servers working the same queue

php /var/www/laravel/artisan queue:listen --env=production --timeout=30 --tries=1 --queue=mail

Will they both process the job, thus it gets processed twice? Or will it only get processed once and this will help with the load/redundancy?

Many Thanks in advance!



via Matt The Ninja

Advertisement