Code Monkey home page Code Monkey logo

Comments (3)

hampos avatar hampos commented on September 24, 2024 2

@atheriel
Hey there and great job on the library.

Is it possible for exactly 1 support on a per-consumer basis?
This is what makes the most sense for long-running work because we don't want a process to consume messages only to have them wait since it's already busy, and it removes the ability to scale by spawning more processes on demand when messages are piling up.

from longears.

atheriel avatar atheriel commented on September 24, 2024

Just to clarify, are you asking that it be possible to change the default (e.g. with a compile-time -DDEFAULT_PREFETCH_COUNT=1 flag), or that it be possible to change the count on a per-consumer basis?

Also, I'm very interested to hear what kind of workload you're running that this is causing issues for.

from longears.

atheriel avatar atheriel commented on September 24, 2024

To provide some additional context: this package uses 50 as the default because that's the number I've seen used in other clients.

My general understanding of RabbitMQ best practice at present is that (1) you never want to use the default unbounded prefetch count/size unless your consumers are stupidly fast; (2) for very consistent workloads you can carefully optimize throughput by picking "just-right" prefetch size and count values; otherwise, (3) you probably want something close to 50 or exactly 1 for true round-robin.

Using R makes (1) irrelevant and (2) suspect, so I'm guessing if you want something different than 50 you want exactly 1.

from longears.

Related Issues (16)

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.