-
Describe your questionI basically follow the "Get Started" manual on the "Topic" page. This is how I init on the receiver side:
and on the publisher side:
It works well. But If I replace dynamic queue name to a persistent one like this:
Then, when messaging is starting, first message is always lost. It repeats after few seconds, meaning if a message exchange occurs after some idle time then the first message will be lost again. It very much looks like consumer and producer need to negotiate something after pause. Reproduction steps
Expected behaviorPersistent queue name intuitively looks more reliable but surprisingly dynamic name works well while a queue with durable, persistent name loses first message after some idling time. Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hello, thanks for using RabbitMQ and this library. Please provide a git repository containing runnable code (console applications), with instructions, to reproduce this issue. You've given some useful information but I really can't spend time guessing how to reproduce what you report. Most likely there is a misunderstanding of how RabbitMQ and / or this library works that I can explain once I understand what you're actually doing. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Many thanks for such a great input, it's very helpful, I really appreciate it. So results: I took your code, just added a counter to see what is transmitted/received: with Then, I did more starts/stops/experiments and at some point, at receiver started with I know it sounds extremely strange but maybe this behavior looks familiar for you? I found a mention of this problem. https://stackoverflow.com/questions/51928575/every-other-message-missing-with-rabbit-mq Solution, of course, does not reveal root cause. |
Beta Was this translation helpful? Give feedback.
Finally got it. Consumer was accidently published to the server and worked there. It was a second consumer for
status_update
.Thanks again for your help! You were right from the very beginning.