azure - 如何确定 Azure Eventhub 中消息的优先级?

标签 azure azure-eventhub

有没有办法在 Azure 事件中心中确定消息的优先级?现在所有消息都按先进先出的顺序输入。我希望首先处理一些高优先级消息。

最佳答案

不,你不能。它不是这样设计的。

但是,有一个东西叫consumer groups :

A consumer group is a view (state, position, or offset) of an entire event hub. Consumer groups enable multiple consuming applications to each have a separate view of the event stream, and to read the stream independently at their own pace and with their own offsets.

这使您能够创建一个名为“HighPrio”的消费者组,并将读取器附加到该消费者组。然后,当消息传入时,您只需对它们不执行任何操作即可跳过低优先级消息处理,并处理高优先级消息上的(复杂)逻辑。通过跳过低优先级消息的逻辑,读者将比默认消费者组更快地通过消息流。

关于azure - 如何确定 Azure Eventhub 中消息的优先级?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75688639/

相关文章:

Azure 持久计时器练习永远不会超时

javascript - 使用 Javascript API 从 Azure 存储表查询中获取特定列

azure - Azure 事件中心在哪里存储它们摄取的数据?

mysql - 无法使用 MySQL Workbench 连接到 Azure MySQL

azure - 将 Azure B2C 与 MVC 应用程序一起使用会进入无限循环,导致错误请求 - 请求太长 Http 400 错误

azure - 尝试使用 Azure DNS 和证书管理器颁发 DNS 证书时出现授权错误

node.js - 您可以根据事件中心消息 header 属性有条件地触发 azure 函数吗?

python - 适用于 python 的 Azure eventhub 库

azure - 事件中心是否应该根据消息类型进行拆分?

azure - 为什么 Azure IoT 中心将事件中心作为端点?