简体   繁体   English

我如何等待,直到RabbitMQ消息已同步到集群中的其他节点?

[英]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.

相关问题 Selenium [Java]:如何让它等到表被刷新? - Selenium [Java] : How can I make it wait until a table has been refreshed? 如何在单击按钮之前隐藏jlist? - How can I hide a jlist until a button has been clicked? 如何等到 HttpServer 完成(即加入其后台线程)? - How can I wait until a HttpServer has finished (i.e. join its background thread)? 如何使Java程序暂停直到按下特定按钮? - How can I make my Java program pause until a specific button has been pressed? 如何以操纵方式重复文本,并重复此操作直到达到我的目标? - How can I repeat text in a manipulative way, and repeat this action until my target has been reached? 使应用程序等到定位服务已打开? - Make the application wait until the location services has been turned on? 消息驱动 bean 不接收来自集群中其他节点的消息 - Message driven bean does not receive message from other nodes in the cluster 谁是rabbitmq 集群管理员? 如何从集群中获取数据? - Who is rabbitmq cluster manager? How can I get data from cluster? 仅在使用Netty响应之前,如何发送消息? - How can I send a message only after previous has been responded using Netty? 如何等到多个 WebClient Flux 请求完成? - How can I wait until multiple WebClient Flux requests are finished?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM