[英]Do we need to maintain Each subscription will have unique EventType Or Multiple subscription can have same EventType in Azure EventGrid Domain
I am using EventGrid Domain in my project,我在我的项目中使用 EventGrid 域,
I have created One Topic name "AccountService" and我创建了一个主题名称“AccountService”和
Created 2 subscription( used WebHook endpoint)创建了 2 个订阅(使用了 WebHook 端点)
SubscriptionName: CR_Account and EventType: CreateAccount and Endpoint: Endpoint1 SubscriptionName:CR_Account 和 EventType:CreateAccount 和 Endpoint:Endpoint1
and和
SubscriptionName: UP_Account and EventType: UpdateAccount and Endpoint: Endpoint2 SubscriptionName:UP_Account 和 EventType:UpdateAccount 和 Endpoint:Endpoint2
My concern is like can I create one more subscription我担心的是我可以再创建一个订阅吗
SubscriptionName: CRNew_Account and EventType: UpdateAccount and Endpoint: Endpoint3 SubscriptionName:CRNew_Account 和 EventType:UpdateAccount 和 Endpoint:Endpoint3
so that when EventGrid receives Event then it has to trigger both Subscriptions(here "CR_Account" and "CRNew_Account")这样当 EventGrid 接收到事件时,它必须触发两个订阅(这里是“CR_Account”和“CRNew_Account”)
The AEG supports a Fan-Out pattern, where the topic event message is multicast to all its subscribed subscriptions and based on their filtering, the event message is delivered to the destination endpoint in the reliable manner. AEG 支持扇出模式,其中主题事件消息被多播到其所有订阅的订阅,并且基于它们的过滤,事件消息以可靠的方式传递到目标端点。
In your case, both subscriptions such as CR_Account and CRNew_Account with a filtering on the EventType CreateAccount will received the same topic event message.在您的情况下,两个订阅(例如CR_Account和CRNew_Account对 EventType CreateAccount进行过滤)将收到相同的主题事件消息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.