如何在Azure Service Fabric中使用MSMQ [英] How can I use MSMQ in Azure Service Fabric

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

问题描述

我已经在Azure Service结构中实现了概念验证,该结构使用Azure Service Bus作为消息队列.我在应用程序中使用nServiceBus来发送和响应消息,这使得从一种排队技术更改为另一种排队技术非常容易.

I have implemented a Proof of Concept in Azure Service fabric that uses Azure Service Bus as a message queue. I'm using nServiceBus within the application to send and respond to messages which makes it very easy to change from one queuing technology to another.

我想知道是否可以在Azure Service Fabric中使用MSMQ代替Service Bus,因为创建的节点只是Windows 2016服务器,并且我不确定是否需要Service Bus之类的东西.我想用POC回答这个问题.

I'd like to know if it's possible to use MSMQ instead of Service Bus in Azure Service Fabric as the nodes that are created are just windows 2016 servers and I'm not sure I need something like Service Bus. It's a question I want to answer with my POC.

有人知道MSMQ是否包含在Azure Service Fabric节点中,或者我怎么打开它以及它是否可行?

Does anyone know whether MSMQ is included in an Azure Service Fabric node or how I could turn it on and if it's a viable solution?

推荐答案

简短答案-MSMQ不适合Azure Service Fabric. MSMQ是存储转发技术.它使用本地文件系统来保留消息,然后转发到另一台计算机.当Service Fabric将服务从一个节点移动到另一个节点时,它将不会一起移动文件系统.这意味着您将丢失消息.

Short answer - MSMQ is not suitable for Azure Service Fabric. MSMQ is store and forward technology. It's using local file system to persist messages and then forward to another machine. When Service Fabric is going to move service from one node to another, it will not move the file system along. Meaning you'll lose messages.

除非有充分的理由要寻找替代方案,否则我建议不使用Azure Service Bus.

I would recommend to stay with Azure Service Bus unless there's a good reason you're looking for an alternative.

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

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