Coder Social home page Coder Social logo

Comments (7)

chilts avatar chilts commented on August 20, 2024

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.

chilts avatar chilts commented on August 20, 2024

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.

florianbepunkt avatar florianbepunkt commented on August 20, 2024

I would be interested in this

from mongodb-queue.

florianbepunkt avatar florianbepunkt commented on August 20, 2024

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

chill-cod3r avatar chill-cod3r commented on August 20, 2024

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

damianfrizzi avatar damianfrizzi commented on August 20, 2024

+1 on what @florianbepunkt and @wolfejw86 mentioned.

from mongodb-queue.

coderbuzz avatar coderbuzz commented on August 20, 2024

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.