Reputation: 2982
I tried to find in the documentation but I didn't find anything related.
When deleting a message from an SQS queue, configured with a high value for visibility timeout, should I change the visibility for a less value timeout and delete the message, or can I delete it directly and the message will be deleted instantly?
My fear is if I delete the message without changing the visibility timeout, it will be in flight until the timeout ends and not when the delete operation was called?
Thanks,
Upvotes: 1
Views: 213
Reputation: 46841
Not sure I understand the issue, if the message is in flight, it can only be deleted by the node to which it is in flight to, so either way, it is effectively deleted immediately as soon as you call the delete operation.
No other nodes will be able to see it, if that is your concern.
Upvotes: 2