gpt4 book ai didi

azure - 如何配置 Azure 服务总线队列以将消息推送到客户端而不进行轮询?

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

我是 Azure 服务总线的新手,我发现我需要不断轮询队列消息才能接收它们。但是,我希望队列将消息推送到客户端的某种监听器,而不必轮询消息。

我了解到轮询在 Azure 服务总线中是可选的,但我找不到如何在没有轮询的情况下接收消息。

如果可以的话请帮忙。谢谢您

最佳答案

I have read that polling is optional in Azure Service Bus but I couldn't find how to receive messages without it.

如果您开始按需接收,则轮询是可选的。否则,它不是可选的,并且将发生长轮询

I want the Queue to push the message to some sort of listener on the client-side of things without it having to poll for messages.

有一种方法可以使用 Event Grid integration with Azure Service Bus 来实现这一目标。 。服务总线将发出一个事件来通知等待处理的消息并且没有事件监听器。这样您的应用程序/系统就会使用react并且无需轮询。

请注意,此功能的关键场景是消息量较小,不需要有连续轮询消息的接收器。

关于azure - 如何配置 Azure 服务总线队列以将消息推送到客户端而不进行轮询?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53299364/

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