如何配置 Azure 服务总线队列以在不轮询的情况下将消息推送到客户端?

How to configure Azure Service Bus Queues to push messages to clients without polling?

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

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

如果可以请帮忙。谢谢

应该是可以的。查看以下内容以了解如何完成:

希望对您有所帮助!

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

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

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 实现这一目标。服务总线将发出一个事件来通知等待处理的消息和没有活动的侦听器。这样您的 application/system 就会做出反应 而不必轮询。

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