dotnetcore/CAP

How to Handle Multiple Instances Receiving Messages

JavaScript-zt opened this issue · 1 comments

在集群部署时2套一样的程序如何配置,看文档说是配置不同的group就可以了,同一套代码如何配置不同的group,group参数必须是常量,也没办法通过读取当前机器标识生成

You can use DefaultGroupName option to configure it globally.

x.DefaultGroupName = Helper.GetInstanceHostname();