Amazon SQS long polling returns 0 messages when messages are in the queue

Amazon SQS long polling returns 0 messages when there are messages in my queue. I was able to reproduce this effect several times.

I know that for a long SQS poll, fewer messages are possible than the requested maximum, even if there are more messages in the queue.

I also know that a short poll can produce zero messages, even if there are more than zero in the queue.

But I did not know that a long poll can give zero messages when there are more than zero messages in the queue. And from what I can say after reading the documents , this should not happen.

Question:

Is it possible for a long SQS poll to return 0 messages, even if there are messages in the queue? If so, are their special conditions that may occur? If not, has anyone else experienced this behavior?

+4
source share
2 answers

As far as I know, this could be due to any of these queue attributes:

Please view the queue configuration. Keep in mind that you can set a specific visibility timeout at the message level that cannot match the value set for the queue.

Hope this helps.

Yours faithfully,

0
source

Make sure the group ID is unique.

AFAIK, , .

0

Source: https://habr.com/ru/post/1682523/


All Articles