Azure Service Bus主题 [英] Azure Service Bus Topic

查看:78
本文介绍了Azure Service Bus主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用Service Bus主题。消息是从应用程序成功发布的,但是订阅的应用程序没有收到消息(事件未被触发),并且天蓝色门户网站中的外发消息卡在
1. 

I am using Service Bus topics in my applications. the messages are published successfully from the application, however the subscribed applications are not receiving the message (event is not triggered) and the outgoing message in azure portal is stuck at 1. 

推荐答案

嗨wh92,

对于门户网站显示: 只需尝试使用隐身窗口,也可以尝试浏览aka.ms/金丝雀,看看它是否有帮助。

For the Portal display : Just try with incognito window and also try browsing aka.ms/canary and see if it helps.

我也尝试通过以下方式重现问题:



1)按照  以服务总线主题文档开始获取
 并接收消息。



2)创建服务总线命名空间,创建主题并按照  以服务总线主题文档开始获取
。然后通过创建&
消息发送到主题文档
 然后使用服务触发器创建逻辑应用程序,并按照  使用Azure Service Bus和Azure Logic Apps doc在云中交换
消息




在这两种方法中,我都可以毫无问题地阅读邮件。



第二种方法只考虑服务总线连接器使用服务总线SDK来获取消息,这里是具体的  API



消息计数是批处理中返回的消息数,它可以检索一个最大指定的数字。所以,
可以在工作流程中执行do until循环得到更多的消息,直到它达到你希望它返回的计数。希望这会有所帮助

Also I have tried to reproduce the issue by following way:

1) Sending messages to the topic by console application by following the Get started with Service Bus topics doc and receive messages.

2) Created the Service Bus Namespace, create a topic and create a subscription to the topic by following the Get started with Service Bus topics doc. Then send messages to the topic by creating the console application mentioned in the Send messages to the topic doc and then Create the Logic app with Service Trigger and add action by following the Exchange messages in the cloud with Azure Service Bus and Azure Logic Apps doc.

In both the approaches I am able to read the messages without any issues.

Only consideration in second approach is that the service bus connector uses service bus SDK to get the messages, here is the specific API.

The message count is the number of messages which are returned in the batch, it may retrieve a number up to the maximum specified. So, you can have a do until loop in the workflow to get more messages till it reaches the count you are expecting it to return. Hope this will help


这篇关于Azure Service Bus主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆