jdarling / MongoMQ

MongoMQ is a messaging queue built on top of Node.js and MongoDB's tailable cursors.
MIT License
90 stars 20 forks source link

Using MongoMQ as a "job queue" #29

Open nickpalmer opened 7 years ago

nickpalmer commented 7 years ago

I would like to enhance MongoMQ to make it more suitable as a "job queue" mechanism, for which I have often used Amazon SQS with great success.

The basic idea would be to add two features to MongoMQ which SQS has:

  1. Support for message handled confirmation and retry semantics. SQS for instance offers a timeout after which a message is requeued for delivery some configurable number of times.

  2. Support for "future delivery" so that message delivery can be scheduled in the future.

My belief is that both of these features can be handled with relatively minor surgery to the query MongoMQ is using to find jobs in the collection. Opening an issue before I begin adding these features to see if you have issues or suggestions on the path forward.

jdarling commented 7 years ago

Gladly take any enhancements on MongoMQ, I thought I was going to have time to maintain it and advance it earlier in the year, but unfortunately the project got canceled and I haven't had the time. Would even be willing to grant contributor rights on the project if your interested.

jdarling commented 7 years ago

Sorry accidentally clicked close and comment :(