gpt4 book ai didi

azure - Azure 事件中心中的客户端与发布者

转载 作者:行者123 更新时间:2023-12-02 09:36:14 25 4
gpt4 key购买 nike

Azure 事件中心的文档提到了客户端发布者 等术语。例如,here

The Event Hubs security model is based on a combination of Shared Access Signature (SAS) tokens and event publishers. An event publisher defines a virtual endpoint for an event hub. The publisher can only be used to send messages to an event hub. It is not possible to receive messages from a publisher.

Typically, an event hub employs one publisher per client. All messages that are sent to any of the publishers of an event hub are enqueued within that event hub. Publishers enable fine-grained access control and throttling.

首先,我认为 client 是例如一些真实的设备,它将数据发送到事件中心,而 publisher 是事件中心的入口点,它知道如何从设备接收事件。

但是,following place in the docs增加了更大的困惑。

Any entity that sends data to an event hub is an event producer, or event publisher. Event publishers can publish events using HTTPS or AMQP 1.0. Event publishers use a Shared Access Signature (SAS) token to identify themselves to an event hub, and can have a unique identity, or use a common SAS token.

那么,它们有什么区别呢?

最佳答案

在您提供的引文中,我的理解是“客户”指的是任何不同的用户组 - 可能是一个应用程序,也可能是某个公司的应用程序(如果您想以这种方式对它们进行分组)。发布者是代码中的构造。本文档中有更多详细信息,包括如何撤销发布者(在您链接的安全文档中提到但未详细描述)。 https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-programming-guide

关于azure - Azure 事件中心中的客户端与发布者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49411391/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com