Not getting messages in SQS after polling ?

0

Hi Team,

In my FIFO SQS queue messages are available but not able to listing received messages after polling in from console?

Note: sometimes getting messages and sometimes not ? issue is intermittent.

Can somebody help me on the same ,how to debug or anything i have missed,

polling setting --> duration -20 sec, count -- 5

1 Answer
0

FIFO queues provide exactly-once processing by consuming messages in sequence from a message group. Thus, although the consumer can continue to retrieve ordered messages from another message group, the first message group remains unavailable until the message blocking the queue is processed successfully or moved to a DLQ.

So are you sure you're not allowing messages to block the queue because you're not deleting them after processing?

EXPERT
answered a year ago
  • Yes, here not deleting messages after processing so those are going to in flight after processing? and also no DLQ configured for this queue., so in this case, polling should happen and should show the list of messages in received section for every time right but the same not happening ., please correct me if am wrong !!

  • If you read a message it becomes in-flight, so "invisible" to subsequent polls until you delete the message or it reached the visibility timeout. With a FIFO queue, while the message is invisible so are all messages after it in the same message group. This is the only way FIFO ordering can be preserved.

  • Yes, but why i am not able to list messages in queue with polling ,sometimes its works as expected and not for sometime?is there any specific reason with FIFO? i have increased the visibility to 5 minutes and polling timeout to 100 with max rec.messages to 10 .

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions