gpt4 book ai didi

azure - 从 eventhub 读取事件 EventProcessorHost 与 EventHubReceiver

转载 作者:行者123 更新时间:2023-12-03 05:05:50 24 4
gpt4 key购买 nike

我尝试通过带有 EventHubReceiver 的控制台应用程序 1 和带有 EventProcessorHost 的另一个应用程序从 eventhub 读取事件,我注意到 EventProcessorHost 的读取速度比 EventHubReceiver 更快。这是真的吗?

最佳答案

不! EventProcessorHost 不可能比 EventHubReceiver 更快,因为 EventProcessorHost 在底层使用了 EventHubReceiver :)

EventProcessorHost(在此,我将使用EPH)是从 Microsoft Azure 接收的简化版本EventHubs 构建在 EventHubReceiver 之上。 EPH 从 EventHub 接收并使用同一存储帐户自动在多个 EPH 实例之间分配分区。

EPH 是探索 EventHubs 的一个非常好的起点。要使用 EventHubReceiver - 一般需要对 EventHubs 有更深入的了解。

关于azure - 从 eventhub 读取事件 EventProcessorHost 与 EventHubReceiver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43922294/

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