PrefetchCount not working
See original GitHub issuePrefetchCount or UseConcurrencyLimit not working.
Following is my code to setup consumer
return Bus.Factory.CreateUsingRabbitMq(busConf =>
{
var host = busConf.Host(new Uri(vHost), h =>
{
h.Username(userName);
h.Password(password);
});
busConf.ReceiveEndpoint(host, queueName,
queueConf =>
{
queueConf.UseRetry(p => p.Immediate(errorRetryCount));
queueConf.PrefetchCount = prefetchCount;
queueConf.UseConcurrencyLimit(prefetchCount);
queueConf.Consumer(() => new CQPricingConsumer(Program.Container));
});
});
After setting it up, I can see its always showing 0 here in “Prefetch count” column (no matter what I use for prefetchCount variable) in the attached screenshot.

Can anyone let me know is it an issue, or i’m doing something wrong?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
Top Results From Across the Web
PubSub.SubscribeAsync prefetchCount does not work as ...
Hello, Maybe I just missed some breaking change but it looks like in EasyNetQ 7 prefetchCount does not work the same way it...
Read more >I can not open prefetch
Open File Explorer and go to c:/windows. · Right-click on the Prefetch folder which you're unable to access and select Properties. · Click...
Read more >RabbitMQ Prefetch Ignored
I'm running into a problem where setting basic.qos to 1 doesn't have the desired effect - tons of messages are still pushed to...
Read more >What is the Prefetch Limit For? - ActiveMQ
Once the broker has dispatched a prefetch limit number of messages to a consumer it will not dispatch any more messages to that...
Read more >DNS Prefetch Not Working
My DNS Prefetching is not working. I have added some url for DNS Prefetching but not showing in Page Source. Even though I...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

That seems wrong, it should be setting it. Which version are you using? 3.5.7?
You’ve either configured it wrong or you aren’t looking in the right place. It works, it’s always worked, and I’ve shown that it works. If you have a configuration problem, post it in Gitter.im or look on Stack Overflow. Every time it’s configuration error in the code or looking at the wrong place in RabbitMQ.