question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PrefetchCount not working

See original GitHub issue

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

image

Can anyone let me know is it an issue, or i’m doing something wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
phatboygcommented, Sep 28, 2017

That seems wrong, it should be setting it. Which version are you using? 3.5.7?

0reactions
phatboygcommented, Apr 30, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found