Skip to content

Messages on queue with message TTL occasionally do not expire #10719

Closed Answered by michaelklishin
ppminfin asked this question in General
Discussion options

You must be logged in to vote

This is documented and has been discussed here on GitHub many times before.

Messages expire when they reach the head of the queue and not earlier. Also see the section on retroactive application of a policy.

Consumers will never receive expired messages as deliveries, though, so when exactly messages are marked for deletion does not matter for any queue that has consumers at least most of the time.

Queues that do not have consumers for long time periods should be streams, where time-based expiration is the name of the game.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by michaelklishin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #10719 on March 12, 2024 11:04.