Each of Laravel's queue drivers are configured from the
config/queue.php file. A queue driver is the handler for managing how to run a queued job, identifying whether the jobs succeeded or failed, and trying the job again if configured to do so.
Out of the box, Laravel supports the following queue drivers:
Sync, or synchronous, is the default queue driver which runs a queued job within your existing process. With this driver enabled, you effectively have no queue as the queued job runs immediately. This is useful for local or testing purposes, but clearly not recommended for production as it removes the performance benefit from setting up your queue.
This driver stores queued jobs in the database. Before enabling this driver, you will need to create database tables to store your queued and failed jobs:
php artisan queue:table php artisan migrate
This queue driver uses Amazon's Simple Queue Service to manage queued jobs. Before enabling this job you must install the following composer package:
Also note that if you plan to use delays for queued jobs, Amazon SQS only supports a maximum delay of 15 minutes.
This queue drivers uses Iron to manage queued jobs.
This queue driver uses an instance of Redis to manage queued jobs. Before using this queue driver, you will need to configure a copy of Redis and install the following composer dependency:
This queue driver uses an instance of Beanstalk to manage queued jobs. Before using this queue driver, you will need to configure a copy of Beanstalk and install the following composer dependency:
Specifying null as your queue driver will discard any queued jobs.