gpt4 book ai didi

azure - 如何保证azure队列的先进先出

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

我了解 MS Azure Queue 服务文档 http://msdn.microsoft.com/en-us/library/windowsazure/dd179363.aspx表示不保证先出 (FIFO) 行为。

但是,我们的应用程序必须按 FIFO 顺序读取和处理所有消息。有人可以建议如何使用 Azure 队列服务实现有保证的 FIFO 吗?

谢谢。

最佳答案

docs对于 Azure 存储队列来说:

Messages in Storage queues are typically first-in-first-out, but sometimes they can be out of order; for example, when a message's visibility timeout duration expires (for example, as a result of a client application crashing during processing). When the visibility timeout expires, the message becomes visible again on the queue for another worker to dequeue it. At that point, the newly visible message might be placed in the queue (to be dequeued again) after a message that was originally enqueued after it.

也许这对你来说已经足够了?否则使用服务总线。

关于azure - 如何保证azure队列的先进先出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7430036/

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