aws-sdk-js-v3 icon indicating copy to clipboard operation
aws-sdk-js-v3 copied to clipboard

Official SQS poller for JavaScript

Open nathanpeck opened this issue 4 years ago • 3 comments

SDK's for other languages such as Ruby have an automatic queue poller class: https://docs.aws.amazon.com/sdk-for-ruby/v2/api/Aws/SQS/QueuePoller.html

Node currently does not. There are several community created pollers such as Squiss, but these are unmaintained: https://www.npmjs.com/package/squiss

We need an official poller class, built into the AWS SDK for JS, which allows me to just start polling, and have a function in my code get called whenever there is a message to receive.

nathanpeck avatar Mar 10 '20 18:03 nathanpeck

I cannot upvote this enough. We have been plagued with issues of this library quietly dying when receiveMessage() is called in any kind of loop. It used to be okay but since the SQS outage a few weeks ago the problem is now 2-3 times per day. Queues literally die and stop sending messages while the messages in them back up and the js client continues receiving empty results.

Still not solved: https://github.com/aws/aws-sdk-js/issues/367

Still not solved: https://github.com/aws/aws-sdk-js/issues/1005

It worked good for a while with httpOptions: timeout: set however since the outage (which impacted all queues, not just FIFO but whatever) around April 17th the problem is now daily.

Let us accept that the only practical use of receiveMessage() is in a loop because queues. Until either SQS or this library has an official means of practical consuming I highly recommend you find a non-sqs alternative such as RabbitMq hosted on your own instance.

There should be a warning about this in the docs.

aaronpeterson avatar May 02 '20 00:05 aaronpeterson

Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.

github-actions[bot] avatar May 03 '21 00:05 github-actions[bot]

Yeah this is still an issue. Please keep the issue open. On Sun, May 2, 2021 at 8:08 PM github-actions[bot] @.***> wrote:

Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aws/aws-sdk-js-v3/issues/6015, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2VN6WXKKTW2UX4CCGPTZLTLXSPVANCNFSM4LFFIXTQ .

nathanpeck avatar May 03 '21 01:05 nathanpeck