Apache Artemis:如何为静态集群创建持久订阅
Apache Artemis: How can i create Durable Subscription for Static Clustered
这里是 clustered-durable-subscription and here is clustered-static-discovery 的例子,在 clustered-static-discovery 中只连接一台服务器(集群使用集群配置自动连接到另一台服务器)。
根据文档
Normally durable subscriptions exist on a single node and can only
have one subscriber at any one time, however, with ActiveMQ Artemis
it's possible to create durable subscription instances with the same
name and client-id on different nodes of the cluster, and consume from
them simultaneously. This allows the work of processing messages from
a durable subscription to be spread across the cluster in a similar
way to how JMS Queues can be load balanced across the cluster
我是否需要为静态集群添加额外的配置,或者持久订阅将在静态集群上正常工作而无需为所有节点设置客户端 ID 和订阅(正如我在静态集群中提到的,我们只与一个节点)
"clustered-static-discovery" 的 "static" 部分实际上仅指集群节点 discovery (顾名思义)。一旦发现集群节点并形成集群,那么集群的行为就好像发现是动态的一样(例如使用 UDP 多播)。换句话说,无论在服务器端使用何种机制进行集群节点发现,集群持久订阅都应该以相同的方式工作。
这里是 clustered-durable-subscription and here is clustered-static-discovery 的例子,在 clustered-static-discovery 中只连接一台服务器(集群使用集群配置自动连接到另一台服务器)。 根据文档
Normally durable subscriptions exist on a single node and can only have one subscriber at any one time, however, with ActiveMQ Artemis it's possible to create durable subscription instances with the same name and client-id on different nodes of the cluster, and consume from them simultaneously. This allows the work of processing messages from a durable subscription to be spread across the cluster in a similar way to how JMS Queues can be load balanced across the cluster
我是否需要为静态集群添加额外的配置,或者持久订阅将在静态集群上正常工作而无需为所有节点设置客户端 ID 和订阅(正如我在静态集群中提到的,我们只与一个节点)
"clustered-static-discovery" 的 "static" 部分实际上仅指集群节点 discovery (顾名思义)。一旦发现集群节点并形成集群,那么集群的行为就好像发现是动态的一样(例如使用 UDP 多播)。换句话说,无论在服务器端使用何种机制进行集群节点发现,集群持久订阅都应该以相同的方式工作。