rsmq icon indicating copy to clipboard operation
rsmq copied to clipboard

Message retention time option

Open vitorfox opened this issue 7 years ago • 7 comments

An option on createQueue and setQueueAttributes methods to set the time a message on a queue will be available to be received.

vitorfox avatar Apr 29 '17 19:04 vitorfox

You mean a "TTL" (time-to-live) option?

So after like 7 days a message will be deleted?

smrchy avatar Jun 16 '17 19:06 smrchy

Exactly 👍

vitorfox avatar Jun 16 '17 21:06 vitorfox

I would love this feature as we're looking to move to rsmq from SQS due to costs. Is it feasible at all? or is it not possible due to architecture?

antoniojtorres avatar Apr 20 '19 01:04 antoniojtorres

Hey @antoniojtorres it sounds like it is possible. I would habe to look into it a bit more and will get back to you. Then i have to find the time to work on it ;)

smrchy avatar Apr 20 '19 17:04 smrchy

@smrchy I would be happy to sponsor this feature on behalf of my company if it isn't too complex. I did some digging around and certain data types on redis don't seem to support the standard TTL features. For example bull queue has no ability to support it.

antoniojtorres avatar Apr 23 '19 01:04 antoniojtorres

I am currently working to refactor the RSMQ base away from Coffeescript to Typescript. Once that is done i will add this feature.

smrchy avatar Apr 25 '19 12:04 smrchy

@smrchy Is this possible today or any known workarround for a TTL for messages in a queue?

michael-voit avatar Mar 15 '24 14:03 michael-voit