ActiveMQ、代理网络、离线持久订阅者重复数据删除
ActiveMQ, Network of brokers, offline durable subscriber dedupe
场景:两个ActiveMQ节点A,B。没有master slave,而是对等节点,它们之间有网络连接器。
一个持久主题订阅者同时注册了(因为它使用故障转移并且在一个点连接到 A 而在另一个点连接到 B)。
问题:如果订阅者在 A 上在线,则每条消息的副本都会放置在 B 上的卸载订阅中。
问题:这是设计使然吗?是否可以将其配置为对消息进行重复数据删除并仅发送给其中一个订阅中的订阅者?
显然设计:http://activemq.apache.org/how-do-distributed-queues-work.html
参见 "Distributed Topics in Store/Forward" 中的内容:
For topics the above algorithm is followed except, every interested client receives a copy of the message - plus ActiveMQ will check for loops (to avoid a message flowing infinitely around a ring of brokers).
场景:两个ActiveMQ节点A,B。没有master slave,而是对等节点,它们之间有网络连接器。
一个持久主题订阅者同时注册了(因为它使用故障转移并且在一个点连接到 A 而在另一个点连接到 B)。
问题:如果订阅者在 A 上在线,则每条消息的副本都会放置在 B 上的卸载订阅中。
问题:这是设计使然吗?是否可以将其配置为对消息进行重复数据删除并仅发送给其中一个订阅中的订阅者?
显然设计:http://activemq.apache.org/how-do-distributed-queues-work.html
参见 "Distributed Topics in Store/Forward" 中的内容:
For topics the above algorithm is followed except, every interested client receives a copy of the message - plus ActiveMQ will check for loops (to avoid a message flowing infinitely around a ring of brokers).