6
votes

I am new to Azure Service Bus and I found that I need to continuously poll for Queue messages in order to receive them. However, 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.

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

Please help if you can. Thank you

2
See if this helps: fabriccontroller.net/….Gaurav Mantri
I am using .Net core-based applications, I think your link is describing something directly related to .Net Framework-based applicationsKenchi

2 Answers

3
votes

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

Polling is optional if you start receiving on demand. Otherwise, it's not optional and long-polling will take place.

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.

There's a way to achieve exactly that using Event Grid integration with Azure Service Bus. Service Bus will emit an event to notify about messages awaiting processing and no active listeners. That way your application/system reacts and doesn't have to poll.

Note that the key scenario for this feature is low volume of messages that do not need to have a receiver that polls for messages continuously.

2
votes

It should be possible. Take a look on the following to get an idea on how it could be done:

Hope it helps!