Replies: 1 comment 1 reply
-
|
Hi, yes it is the best setup, you should read https://bref.sh/docs/laravel/queues to get started. Locally you can use the sync or file or database driver. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been working on a Laravel Serverless API using Bref and AWS CDK.
Right now, I'm trying to integrate an SQS queue to handle asynchronous tasks.
Here’s the flow I'm aiming for:
The API receives an HTTP request and sends a message to AWS SQS using Laravel's queue system.
SQS receives the message and triggers a separate Lambda function to process the task using a Bref handler.
From what I’ve researched, this seems like a reasonable approach—but I’m not entirely sure whether it's better to use Laravel Queues or interact directly with the AWS SDK to handle messages. Has anyone dealt with a similar setup or have any insights?
Also, I'd really like to have a local SQS mock for testing. Unfortunately, it looks like Bref doesn’t currently support local SQS environments. I’ve considered using LocalStack or ElasticMQ to simulate SQS locally, but I’m having trouble integrating that with the Lambda function running in Bref’s local environment.
If anyone has tips on how to set this up or suggestions for a better approach, I’d really appreciate it!
Beta Was this translation helpful? Give feedback.
All reactions