Comments (3)
@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.
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.
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)
- Support for brokers with SSL HOT 1
- No automatic reconnects HOT 1
- cannot demonstrate minimal usage; please advise HOT 2
- Add a vignette about working with acknowledgements
- The timeout is limited to 10 seconds. HOT 1
- Acknowledgements HOT 16
- r-hub / r-minimal HOT 1
- Why is the message payload encoded ?
- Consume messages in a Shiny application
- Can't get Direct Reply-to to work
- Publishing raw data HOT 2
- Issue compiling on Ubuntu against librabbitmq 0.4.1 HOT 7
- longears not in CRAN or its archives HOT 4
- How to keep consumer alive HOT 5
- Installation at Google Colab R HOT 1
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 longears.