Files
floci/docs
TATSUNO “Taz” Yasuhiro e6ee346761 feat(sqs): expire messages after MessageRetentionPeriod (#4706)
* feat(sqs): expire messages after MessageRetentionPeriod

ReceiveMessage, GetQueueAttributes counts, the inspection endpoint and
StartMessageMoveTask skip messages older than the queue's retention
period. A sweeper frees expired messages every 60 seconds.

As on AWS, a standard DLQ keeps the original enqueue time, while a FIFO
DLQ and StartMessageMoveTask start the retention period over.
SentTimestamp is kept in all cases.

* fix(sqs): drop messages that expire during a rate-limited move task

* test(sqs): cover a failing retention sweep

* test(sqs): make the rate-limited move task expiry test deterministic

* test(sqs): assert the expiring message is live when the move task starts

* fix(sqs): reject MessageRetentionPeriod outside 60 to 1209600 seconds
2026-09-30 00:03:48 -04:00
..
2026-03-15 17:43:56 -05:00