Comments (7)
I'd accept a PR which would effectively say to .get()
to try and retrieve multiple messages at the same time. Currently this isn't possible except in a loop as you suggest.
I have no idea about timing overall, that would be up to the user to profile the queue with their own setup, servers and MongoDB architecture. I'm sure it could scale up a lot, but I have no numbers to back that up. Also, this isn't enterprise, for that I'd probably go and look at something else.
from mongodb-queue.
Hmm, I just came across this again. I'm thinking about adding this functionality, but will probably only do it if there is some kind of demand for it. Anyone reading this, feel free to say so in the comments.
from mongodb-queue.
I would be interested in this
from mongodb-queue.
@chilts To be a bit more specific… I would like to know how to create a worker that consumes the queue (maybe with a given concurrency) as long as there are jobs
from mongodb-queue.
+1 to essentially allowing the ability to create a "consumer". supporting a "worker/consumer" style pattern that could automatically retrieve messages if they exist unacked would be a pretty awesome edition to this package.
from mongodb-queue.
+1 on what @florianbepunkt and @wolfejw86 mentioned.
from mongodb-queue.
+1 it could be nice to have option to get messages in batch
Please take a look CloudFlare's Queue JavaScript APIs
from mongodb-queue.
Related Issues (18)
- get() method doesn't follow the FIFO HOT 10
- Incorrect indexes? HOT 8
- findOneAndUpdate vs findAndModify HOT 6
- Long polling with queue.get? HOT 6
- Date type instead of string for datetime fields HOT 2
- Cant connect HOT 4
- Dead Queues Management HOT 1
- concurrency? HOT 4
- for await...of as interface for queue consumer
- How can i connect this with mongoose? HOT 2
- returnOriginal flag is deprecated in findOneAndUpdate
- Batch Processing
- message order after visibility timeout HOT 4
- Using mongdb nodejs driver 4 HOT 2
- Error acknowledging a queue: Queue.ack(): Unidentified ack HOT 3
- Support for node-mongodb-native2 HOT 3
- Support MongoDB 3.x HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongodb-queue.