在本地使用Azure Service Bus [英] Using Azure Service Bus in local

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

问题描述

我正在使用Azure Service Bus主题和订阅.它被用来在整个应用程序中发送控制消息.消息侦听器(订阅者)以工作角色运行,他们在提取消息并处理请求.即使有多个侦听器同时运行,总线中的每个消息也只能被提取一次.

I am working with Azure Service Bus Topics and Subscriptions. It's being used to send control messages across the application. The message listeners (subscribers) are running in a worker role and they are picking up the messages and processing the request. Each message in the bus can be picked up by only once, even if there are multiple listeners running simultaneously.

使用服务总线没有问题;但是,在本地调试/测试应用程序时,我们会遇到一些问题.我们有2条服务总线,一条用于云计算,另一条用于本地调试.现在,如果有多个人同时调试应用程序,则该消息仅由系统之一(随机)接收.这是预期的行为,但在调试时会造成麻烦.

There is no issue in using the Service Bus; however we are facing some issues while debugging/testing the application in local. We have 2 service bus, one for the cloud and one for local debugging. Now if multiple people are debugging the application simultaneously, the message is being picked by only one of the system (at random). This is the intended behavior, but it's causing a nuisance while debugging.

有什么方法可以将本地仿真器用于Service Bus?我做了一些研究,但找不到任何可靠的解决方案.有什么方法可以孤立地调试应用程序?

Is there any way how I can use a local emulator for the Service Bus? I did some research but I couldn't find any reliable solution for this. Is there any way how we debug the application in isolation?

推荐答案

不幸的是,没有Azure SB本地模拟器. 之前已问过,您可以尝试使用用于WS的SB的MSDN链接.

Unfortunately, there is no Azure SB local emulator. That was asked before, and you can try to use Service Bus for Windows Server but it is slightly behind the cloud service in terms of features support/functionality, etc. Still, it supports Azure SDK, for example. MSDN link for SB for WS.

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

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