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?
source
share