When I use topic/subscription in Azure Service Bus, is it possible to call an web api to inform me to get the message? Like AWS SNS

本秂侑毒 提交于 2019-12-02 11:48:53

问题


As I know, in AWS, if there's a new message in queue, AWS SNS can call my web API to inform me to get the message, so I don't need to get message by polling the queue to check if there is new message. Does Azure Service Bus topic/subscription has this similar function? Or I only can get the message by polling the subscription to check if there are new messages? Thanks


回答1:


Not via Web API, but via .NET client library. This is named there the "Event Driven Programming model". And is in .NET Client library since April'2013. You can read more here:

http://msdn.microsoft.com/en-us/library/azure/dn198643.aspx and here http://fabriccontroller.net/blog/posts/introducing-the-event-driven-message-programming-model-for-the-windows-azure-service-bus/



来源:https://stackoverflow.com/questions/27521411/when-i-use-topic-subscription-in-azure-service-bus-is-it-possible-to-call-an-we

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!