sqs-queue-parallel icon indicating copy to clipboard operation
sqs-queue-parallel copied to clipboard

Create a Node.js poll of SQS workers, each one can receive 1+ messages from Amazon SQS.

Results 10 sqs-queue-parallel issues
Sort by recently updated
recently updated
newest added

In cases where the message's body is not JSON, trying to parse the body as JSON throws an error and crashes the process. To prevent this from happening, we can...

@sdossick @bigluck I am facing this issue only when I am using this library message: 'Access to the resource https://sqs.us-east-2.amazonaws.com/ is denied.', code: 'AccessDenied', time: 2021-03-01T07:03:45.606Z, requestId: '7e964ccb-0430-5a74-9859-147d90216795', statusCode: 403,...

It appears this library uses `sqs.listQueues` and some convoluted regexp matching in order to discover the QueueUrl it is supposed to use. The AWS API and SDK provide a `sqs.getQueueUrl`...

I need something like this, but see a lot of open issues and not merged pull request... Is this still a thing?

Failing to parse the JSON generates an exception on plain text messages. wrapping it in a try/catch

you need try JSON.parse(message.Body) catch then message.Body try { JSON.parse(message.Body); } catch (_error) { message.Body; }

Changed the line so that xml data is supported

Currently, there's no way to stop listening. AWS.Request exposes an abort() that can be used to stop the queue. I'd make a pull request, but I don't drink Coffee. Maybe...

Running the following reduced test case will cause the node process to balloon it's memory usage, especially if it's processing messages. If it's just waiting for new messages, the process...