weyoss / redis-smq

A simple high-performance Redis message queue for Node.js.
MIT License
588 stars 64 forks source link

Feature request: Queue size limiting #74

Open PhantomRay opened 2 years ago

PhantomRay commented 2 years ago

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.

weyoss commented 2 years ago

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.