简体   繁体   English

Rabbit MQ缺少所有其他消息

[英]Every other message missing with Rabbit MQ

We have a RabbitMQ server running under Docker. 我们有一个在Docker下运行的RabbitMQ服务器。 We both publish and receive messages from code in both Ruby and Python, all of which is almost exactly straight from the online tutorial examples. 我们同时发布和接收Ruby和Python中的代码消息,所有这些消息几乎都完全来自在线教程示例。 After a short number of messages, the Python version starts to only receives every other message. 收到少量消息后,Python版本开始仅接收其他所有消息。 The Ruby script continues to receive all of them. Ruby脚本继续接收所有这些脚本。

While not exactly RabbitMQ experts, we've checked the code and it's so close the official tutorials that it's hard to see that we're making any big mistakes. 虽然不是完全RabbitMQ专家,但我们已经检查了代码,并且它与官方教程非常接近,以至于很难看出我们在犯任何大错误。 Plus it works initially anyway. 再加上它最初仍然可以工作。

Is there anything that could be causing this odd behaviour? 有什么可能导致这种奇怪的行为吗?

The answer, as hinted at by Pascal, was that it needed to be set to 'Fan-Out'. 正如Pascal所暗示的那样,答案是需要将其设置为“ Fan-Out”。 Thanks for the tip. 谢谢你的提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM