The time period between repeated messages

According to the documentation for SQS (emphasis mine):

Amazon SQS stores copies of your messages on multiple servers for redundancy and high availability. In rare cases, one of the servers on which a copy of the message is stored may not be available when a message is received or deleted. If this happens, a copy of the message will not be deleted on this inaccessible server, and you can receive this copy of the message when you receive messages . Because of this, you must design your application as idempotent (i.e., it should not be adversely affected if it processes the same message more than once).

What is the period of time between original and duplicate messages? (seconds? hours? months?)

+1
amazon-web-services amazon-sqs
source share
1 answer

I don’t have any concrete evidence or references to show you, but in my experience with SQS you are talking about a time range that in most cases is a few minutes. The possibility of a repeated message will be due to the activity that occurred in the message during a very small delay, since the message is replicated through high-speed connections with redundant queues in the AWS infrastructure, therefore, in other words, very quickly, This will probably affect the visibility timeouts which you indicated.

+3
source share

All Articles