Hello,
I want to use get the number of messages in a queue using DeclareQueueWithCounts, but I cannot get the right number of messages.
The problem is as follows:
Scenario:
I have a queue named "queue1", I bind the queue with two routing keys "queue1" and "queue".
I publish several messages to the queue using the routing key "queue".
Problem:
When I using DeclareQueueWithCounts("queue1", message_count, consumer_count) I always get the message_count as 0.
However, when I using subscribe, there are some messages.
Is there any way to get the right number of messages in a queue with multiple routing keys?
Thank you.