简体   繁体   中英

Azure Service Bus Feature

I have a simple question about azure Bus, i am trying to use it with azure functions and i intend to reduce the cost of the azure function due to polling of the azure service bus for messages is there a way to have the message sent out from azure service bus to an endpoint the moment the message is received. without using event grid?

Yes, As per Sead Feldman. it is true, On your behalf, it is polled by the Service Bus when a function is triggered. it gives if messages available.

AFAIK, because of the underlying service architecture, the ServiceBusTrigger is on a polling basis.

As per this MSFT Documentation , the characteristics of a Azure Service Bus is:

is a reliable asynchronous message delivery (enterprise messaging as a service) that requires polling

The same issue is registered in the GitHub that Polling costs is high with Service Bus Queue triggers even in zero activity of the Azure Functions.

From that GitHub discussion, switching to Azure Event Grid Trigger is the good option because Azure Service Bus integrates with Azure Event Grid as Service Bus will send events to Azure EventGrid when there are new messages which would prevent you from polling.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM