Home > Enterprise >  Where is the SQS message visible again, after it's visibility timeout is over?
Where is the SQS message visible again, after it's visibility timeout is over?

Time:05-18

For a normal SQS, let's say having a visibility timeout of 30s. A message is consumed by one worker, and the worker doesn't delete the message from the SQS. Now, after 30s, the message becomes available again.

Exactly where in the SQS will this message be available? Will it be available at the start of the queue, where it will be consumed as soon as possible, or at the end of the queue?

CodePudding user response:

The answer is somewhere. In a standard SQS queue, there is no guarantee about the order of messages. From experience, it seems like they will appear somewhere at the front of the Queue, but as far as I know, that's not a documented behavior you should rely on.

  • Related