简体   繁体   English

Azure 事件网格 | 每个事件的主题

[英]Azure Event Grid | Topic per event

I'll get different types of events from the client.我将从客户端获得不同类型的事件。 There will be 5-6 event types and Azure Functions app will consume these events.将有 5-6 种事件类型,Azure Functions 应用程序将使用这些事件。 Load to Event Grid won't be so high, let's say between 5-10k per event type per day.事件网格的负载不会那么高,比方说每天每个事件类型 5-10k。

I don't want to leave best practices whether the project is small or big.无论项目大小,我都不想留下最佳实践。 So, according to information I shared, should I create a topic per event type or just create a topic and filter them by subjects?那么,根据我分享的信息,我应该为每个事件类型创建一个主题,还是只创建一个主题并按主题过滤它们?

The best practice would be creating topic per event type rather than creating one and filtering by subject最佳做法是为每个事件类型创建主题,而不是创建一个主题并按主题过滤

Using the Events page of a resource, for example, Storage Account or Event Hubs Namespace.使用资源的事件页面,例如存储帐户或事件中心命名空间。 When you use the Events page in the Azure portal to create an event subscription for an event raised by an Azure source (for example: Azure Storage account), the portal creates a system topic for the Azure resource and then creates a subscription for the system topic.当您使用 Azure 门户中的事件页面为 Azure 源(例如:Azure 存储帐户)引发的事件创建事件订阅时,门户会为 Azure 资源创建系统主题,然后为系统创建订阅话题。 You specify the name of the system topic if you are creating an event subscription on the Azure resource for the first time.如果您是第一次在 Azure 资源上创建事件订阅,则指定系统主题的名称。 From the second time onwards, the system topic name is displayed for you in the read-only mode.从第二次开始,系统主题名称以只读方式显示给您。 See Quickstart: Route Blob storage events to web endpoint with the Azure portal for detailed steps.有关详细步骤,请参阅快速入门:使用 Azure 门户将 Blob 存储事件路由到 web 端点

Here are the few Microsoft links which have information about event grid system topics and custom topic creation.以下是一些 Microsoft 链接,其中包含有关事件网格系统主题自定义主题创建的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM