laravel-sqs-fifo-queue | Adds a Laravel queue driver for Amazon SQS FIFO queues | AWS library
kandi X-RAY | laravel-sqs-fifo-queue Summary
kandi X-RAY | laravel-sqs-fifo-queue Summary
Adds a Laravel queue driver for Amazon SQS FIFO queues.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create a new job payload .
- Get meta payload .
- Connects to the queue .
- Register the queue manager .
- Get the default configuration .
- Get the substring before the last occurrence of a string .
- Register duplicates .
- Set the deduplicator .
- Set message group id
- Returns a substring of a string
laravel-sqs-fifo-queue Key Features
laravel-sqs-fifo-queue Examples and Code Snippets
Community Discussions
Trending Discussions on laravel-sqs-fifo-queue
QUESTION
I'm running a worker that processes a sqs-fifo queue and it hangs between jobs (see the times):
...ANSWER
Answered 2019-Jun-05 at 16:12From what I know nothing guarantees that after a job has been processed the next job would start inmediately after with no delay. As your queue driver is sqs, your queue listeners need to query Amazon through the internet to get the information needed for the next job to be performed (the next job + the serialized data), you would at least have that network delay from the moment the listener finishes a job and the moment it has the information required for processing the next one. In a multiple listeners scenario that would not be a problem, you can assume a bit of delay among jobs processed by the same listener as other listeners would be concurrently dealing with other queued jobs, but I'm afraid that if you need to sequentially deal with those queued jobs at least that delay is unavoidable.
Also SQS works with polling, that means that every X slices of time the worker is allowed to ask SQS for the next queued job to handle if available, so you are still fixed to these discrete amounts of time.
I've also seen on the documentation that a DelaySeconds
per queue parameter can be set, as I see your delay seem to be quite bigger than the one mentioned before, I would also check for this parameter on my configuration.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-sqs-fifo-queue
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page