Replies: 2 comments 1 reply
-
This value is returned by RabbitMQ and not computed by the client in any way. |
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks for your prompt reply. Actually in my case the consumption of messages is configured with manual Ack, and the number of messages is far higher than an eventual zeroing prefetch. To give you a more concrete idea of what is going on I share some information:
Any hint on what could be wrong? Thanks again |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am having the same issue with RabbitMQ Client version 6.5.0 downloaded from nupkg.
My project is composed of a few containers which communicate each other through an event bus amqp-based (RabbitMQ).
The first container A is multithread working only as producer (it has a single shared connection among threads and one channel per thread).
Each thread declares a durable queue using
IModel.QueueDeclare
method and send persistent messages.The receiving container B (multiprocess) dequeues the messages from each queue (per process).
I downloaded the source code from github here and ran quite a few tests.
While simply debugging with container A and the relating RabbitMQ container everything works fine: MessageCount returns the correct number of messages in the queue, running instead the whole project the issue occurs.
Playing with the containers I found out the issue occurs only when container B is subscribed to the queue as consumer: starting and stopping B, A consequently will show 0 messages when A is running and correct message count (thousands) when A stops.
Please let me know if further information is needed.
Thanks
Originally posted by @dapalex in #1210 (comment)
Beta Was this translation helpful? Give feedback.
All reactions