azure - 如何使用 Azure 服务总线分区队列/主题支持 FIFO 消息排序?

标签 azure servicebus azureservicebus

我认为使用分区队列和主题的权衡是不再保证消息排序。

由于消息默认情况下循环发送到每个片段/分区,因此这意味着不再保证消息顺序。有人可以确认情况是否如此吗?

从分区队列接收交易时如何保证消息排序。

使用 session 是支持分区队列/主题的 FIFO 消息排序的唯一方法吗?我假设同一 session /分区键的所有消息至少都会以 FIFO 方式传送?

最佳答案

我在一篇博客文章中发现了这一点。

希望对你有帮助!

Partitioned Service Bus Queues and Topics

SessionId. If a message has the SessionId property set, then Service Bus uses the SessionId property as the partition key. This way, all messages that belong to the same session are assigned to the same fragment and handled by the same message broker. This allows Service Bus to guarantee message ordering as well as the consistency of session states.

关于azure - 如何使用 Azure 服务总线分区队列/主题支持 FIFO 消息排序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28114288/

相关文章:

azure - 使用哪些 GA API 来访问客户交互原始数据?

asp.net - 用于 asp.net 进程的 Windsor 复合生活方式

azure - 使用 ARM 模板生成或指定 Azure 服务总线命名空间 SAS token

azure - 有没有办法从 Azure 中的服务总线队列中删除待处理的消息?

c# - 将 BrokeredMessage 从 Postman 发送到 Azure Function

azure - Azure 服务总线中的竞争消费者消息传递模式

c# - ADAL 身份验证出错

Azure数据工厂管道: Scheduling to run on Every Saturday @ 1:00 AM

将证书添加到 Key Vault 时出现 Azure 错误

azure - 主题订阅限制