Azure 服务总线主题可用于私人消息

Azure service bus topic can use for private message

与允许我们一对一传送的 Azure 服务总线队列相比,Azure 服务总线主题允许我们一对多传送消息。这意味着我们可以将相同的消息传递给多个称为订阅者的客户端。这个消息系统基本上是一个 ESB 系统(企业服务总线),允许进行“publish/subscribe”通信。

我有多个客户,我为每个客户创建了主题。每当服务器向客户端发送消息时,它只是将消息放入客户端主题。是否可以创建单个主题和多个订阅者,以便每个客户端只收听其消息?

Is it possible if i create single topic and multiple subscriber so that every client just listen only its message?

当然可以。您要做的是配置主题过滤规则,以便每个订阅根据为它们定义的过滤条件获取消息。您可以在此处了解有关过滤规则的更多信息:https://docs.microsoft.com/en-us/azure/service-bus-messaging/topic-filters.

从这个link:

Subscribers can define which messages they want to receive from a topic. These messages are specified in the form of one or more named subscription rules. Each rule consists of a condition that selects particular messages and an action that annotates the selected message. For each matching rule condition, the subscription produces a copy of the message, which may be differently annotated for each matching rule.