smrchy / rsmq

Redis Simple Message Queue
MIT License
1.75k stars 124 forks source link

Message retention time option #49

Open vitorfox opened 7 years ago

vitorfox commented 7 years ago

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

smrchy commented 7 years ago

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

So after like 7 days a message will be deleted?

vitorfox commented 7 years ago

Exactly 👍

antoniojtorres commented 5 years ago

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?

smrchy commented 5 years ago

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 ;)

antoniojtorres commented 5 years ago

@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.

smrchy commented 5 years ago

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

michael-voit commented 5 months ago

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