redis-smq icon indicating copy to clipboard operation
redis-smq copied to clipboard

Feature request: Queue size limiting

Open PhantomRay opened this issue 3 years ago • 1 comments

hi there, Is it possible to limit the size of the queue. For example, I'm only interested in last 10 messages of a queue. The queue will hold 10 messages max and old messages will be dumped.

This is common for some queue systems or databases.

Not super important but nice to have.

PhantomRay avatar Feb 22 '22 01:02 PhantomRay

Thank you for creating this issue.

This feature requires some time for analysis. I do not want to introduce any complex layer.

As the number of features grows, the complexity grows, and this message queue won't be anymore a simple message queue.

Keeping this issue open until further update.

weyoss avatar Feb 23 '22 08:02 weyoss