It's important to setup how you handle the queue as queues are used to handle
background tasks such as mail sending. We support multiple queue drivers:
Sync: A synchronous driver which means no task will be handled in the background. Instead, the task will
execute in the same request.
Database: It will store tasks in the database and execute them one by one. To execute tasks that are
stored in the DB, you need to keep running this command on your server:
php artisan queue:work
You can checkout this doc to know how to setup supervisor to keep running this command in the background:
Laravel Doc
Redis: Uses Redis to store queue jobs. This requires Redis to be installed and configured on your server.
This is a good option for high-throughput queue processing.
php artisan queue:work redis
SQS: Uses Amazon SQS (Simple Queue Service) to manage your queue jobs. This requires AWS credentials
and proper configuration.
php artisan queue:work sqs
Beanstalkd: A simple, fast work queue that requires the Beanstalkd service to be installed on your server.
php artisan queue:work beanstalkd
Please note that you can change these settings at any time by modifying your .env file
or updating config/queue.php.