I have to run a laravel command php artisan queue:work --daemon
to run jobs stored on Beanstalkd queues.
I have come across two possible solutions:
- Run commands using Supervisord:
Register a command in the config files of Supervisord and start it.
- Run commands using CronJobs:
*/1 * * * * /usr/bin/php /var/www/laravelProj/artisan queue:work --daemon --tries=3
Can someone please explain what way should I go and what would be the best for performance enhancement.