Configure Your Laravel Queues with AWS SQS

Introduction
Recently, I had to migrate my queue driver on a project from Redis to SQS and for some weird reason the information provided on the official Laravel Queues documentation didn’t do justice to this and I couldn’t find an article online that …


This content originally appeared on DEV Community and was authored by techdurjoy

Introduction
Recently, I had to migrate my queue driver on a project from Redis to SQS and for some weird reason the information provided on the official Laravel Queues documentation didn't do justice to this and I couldn't find an article online that could help, that's why I'm writing this, with the hope that you don't spend two hours of your Saturday morning figuring stuff that should have been documented. I'd try to keep this article as brief as possible, I'd attach links to other articles that explain some steps so I can focus on the important parts.

Prerequisites

An existing Laravel application
An AWS account
An understanding of Laravel queues
Some AWS knowledge

If you use Laravel Horizon to manage your queues, you'd be making some modifications to your horizon.php file. For each worker defined, change the queue connection from redis which is the default to env('QUEUE_CONNECTION')

Out of the box, Laravel dispatches jobs to the default queue, therefore, your first queue should be named default on SQS.

Configure Your Laravel Queues with AWS SQS


This content originally appeared on DEV Community and was authored by techdurjoy


Print Share Comment Cite Upload Translate Updates
APA

techdurjoy | Sciencx (2021-05-16T00:33:59+00:00) Configure Your Laravel Queues with AWS SQS. Retrieved from https://www.scien.cx/2021/05/16/configure-your-laravel-queues-with-aws-sqs/

MLA
" » Configure Your Laravel Queues with AWS SQS." techdurjoy | Sciencx - Sunday May 16, 2021, https://www.scien.cx/2021/05/16/configure-your-laravel-queues-with-aws-sqs/
HARVARD
techdurjoy | Sciencx Sunday May 16, 2021 » Configure Your Laravel Queues with AWS SQS., viewed ,<https://www.scien.cx/2021/05/16/configure-your-laravel-queues-with-aws-sqs/>
VANCOUVER
techdurjoy | Sciencx - » Configure Your Laravel Queues with AWS SQS. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/16/configure-your-laravel-queues-with-aws-sqs/
CHICAGO
" » Configure Your Laravel Queues with AWS SQS." techdurjoy | Sciencx - Accessed . https://www.scien.cx/2021/05/16/configure-your-laravel-queues-with-aws-sqs/
IEEE
" » Configure Your Laravel Queues with AWS SQS." techdurjoy | Sciencx [Online]. Available: https://www.scien.cx/2021/05/16/configure-your-laravel-queues-with-aws-sqs/. [Accessed: ]
rf:citation
» Configure Your Laravel Queues with AWS SQS | techdurjoy | Sciencx | https://www.scien.cx/2021/05/16/configure-your-laravel-queues-with-aws-sqs/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.