[英]How can i wait until a RabbitMQ message has been synced to the other nodes in the cluster?
I have a three node rabbitmq cluster. 我有一个三节点rabbitmq集群。 This is the cluster I am using (not mine) https://github.com/bijukunjummen/docker-rabbitmq-cluster .
这是我正在使用的集群(不是我的集群) https://github.com/bijukunjummen/docker-rabbitmq-cluster 。
I am running into an issue where if I send a large amount of messages to a queue with ha-policy=all, and ungracefully shutdown the server, the messages are not all available on the other nodes. 我遇到了一个问题,如果我将大量消息发送到具有ha-policy = all的队列,并且不合理地关闭服务器,则消息在其他节点上并非全部可用。
I think this issue is because the node does not have enough time to propagate the message to the other nodes. 我认为此问题是因为该节点没有足够的时间将消息传播到其他节点。
I am seeking a way to know if the client needs to resend the message because the server was terminated before message propagation. 我正在寻找一种方法来了解客户端是否需要重新发送消息,因为服务器在消息传播之前已被终止。
Is this possible in the Java RMQ library? Java RMQ库中有可能吗?
Thanks. 谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.