gpt4 book ai didi

相当于 RabbitMQ QoS 的 Azure 服务总线

转载 作者:行者123 更新时间:2023-12-02 23:39:39 29 4
gpt4 key购买 nike

我正在开发一个使用 Azure 服务总线队列在消费者之间分发消息的应用程序。我的所有消费者都在监听一个队列。以下是我想澄清的几件事。关于我的担忧的 Azure 文档提供的信息要少得多

  1. 如果我的所有消费者都使用一个队列,那么交付是否会像 RabbitMQ 那样以循环方式进行
  2. 是否有相当于 RabbitMQ basicQos 的 Azure 服务总线
  3. 如何处理消费者的手动确认。 Azure 文档使用基于回调的方法,这不是我所需要的。

提前致谢

最佳答案

If a single queue is used for all my consumers, will the deliveries happen in round robbin fashion like in RabbitMQ

是的。
向具有两个消费者的队列发送 10 条消息,我得到: enter image description here

Is there an Azure service bus equivalent to RabbitMQ basicQos

您正在寻找 RabbitMQ basicQos 的哪些功能?

How to handle manual acks from consumers. The Azure documentation uses a callback-based approach which is not what I need in my case.

您可以使用 IReceiverClient.CompleteAsync (将消息标记为正在使用)和 IReceiverClient.AbandonAsync (解锁消息并使其可以再次接收)

关于相当于 RabbitMQ QoS 的 Azure 服务总线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64003154/

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