重用和远程队列 [英] Rebus and Remote queues

查看:74
本文介绍了重用和远程队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Rebus( https://github.com/rebus-org (v. 0.83)),直到现在,它都只在一台机器上本地运行.现在,我需要使用从我的网站到应用程序服务器的远程队列.我还不太清楚如何使用Rebus进行设置.几个问题

I'm using Rebus (https://github.com/rebus-org (v.0.83)) and until now it's been all local to a single machine. Now I need to use a remote queue from my website to an app server. It's not abundantly clear to me how to set this up with Rebus. A few questions

  1. 我猜我需要两台计算机(Web和应用程序)上的MSMQ正确吗?我已经将该网站配置为UseMsmqInOneWayClientMode
  2. 还是有一种方法可以指定通过http发送?
  3. 我的配置或多或少看起来像这样.我猜测inputQUeue需要指向本地计算机而不是远程计算机,对吗?

  1. I guess I need MSMQ on both machines (web & app) correct? I've configured the web site to UseMsmqInOneWayClientMode;
  2. or is there a way to specify to send it over http?
  3. My configuration looks like this more or less. I'm guessing that inputQUeue needs to point to the local machine not the remote one right?

<rebus inputQueue="mywebqueue" errorQueue="MyErrorQueue@mymachine" workers="1" maxRetries="5"> <endpoints> <add messages="MyLibrary.CreateMessage, MyLibrary" endpoint="MyQueue@mymachine"/> </endpoints> </rebus>

<rebus inputQueue="mywebqueue" errorQueue="MyErrorQueue@mymachine" workers="1" maxRetries="5"> <endpoints> <add messages="MyLibrary.CreateMessage, MyLibrary" endpoint="MyQueue@mymachine"/> </endpoints> </rebus>

我们将不胜感激.

推荐答案

  1. 是的.所有需要以某种方式使用MSMQ的计算机都需要安装MSMQ.甚至像Web服务器一样作为单向客户端,因为MSMQ通过在发送到远程计算机时提供传出队列来实现其高可用性.

我是这样认为的.除了基本的可靠消息传递功能之外,我从未使用过MSMQ.谷歌周围,我敢打赌你可以找到一些东西;)

I think so. I've never used MSMQ beyond its basic reliable messaging capabilities. Google around, I bet you can find something ;)

您的配置看起来正确.是的-输入队列始终是本地队列,而您发送到的队列(错误队列和端点映射中指定的所有端点)也可以是远程的.

Your configuration looks right. And yes - input queues are always local, whereas queues you send to (error queue and all endpoints specified in the endpoint mappings) can be remote too.

这篇关于重用和远程队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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