通过MSMQ保证交付 [英] guaranteed delivery with MSMQ

查看:106
本文介绍了通过MSMQ保证交付的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我了解,MSMQ的推荐做法是发送到远程队列(在远程计算机上)并从本地队列读取.

As I understand recommended practice with MSMQ is sending to remote queues (on remote machines) and reading from local queues.

MSMQ如何保证将消息传递到远程计算机?我是说它如何实现存储转发机制?

How does MSMQ guarantee delivery of  a message to a remote machine? I mean how does it implement store-and-forward mechanism?

它提供什么保证,例如恰好一次"或至少一次"?

What guarantees does it provide, e.g. "exactly once" or "at least once"?

如果远程计算机脱机了怎么办?  MSMQ如何知道它何时联机?是否拉远程计算机以进行响应?如果是这样,多久一次?

What if a remote machine is offline,  how does MSMQ know when it gets online? Does it pull remote machine for responce? If so, how often?

 

谢谢

 

Sharas

推荐答案

Hello Sharas,

Hello Sharas,

这些问题很多. MSMQ使用TCP 1801发送消息,以确保有保证且恰好一次发送,我们将消息发送给接收者,然后接收者向反方向发送确认消息(返回给发送者) 表示它已收到该消息.该确认消息还包含用于确保该消息被准确接收一次的信息以及订购信息.

Those are lots of good questions.  MSMQ sends messages using TCP 1801, for guaranteed and exactly once delivery, we send the message to the receiver, and then the receiver sends an acknowledgement message in the reverse direction (back to the sender) indicating that it has received the messaged.  This acknowledgement message also contains information to ensure that the message was received exactly once, along with ordering information.

当远程计算机脱机时,MSMQ发送者将定期尝试与接收者联系.机器脱机的时间越长,间隔就越大.您也可以通过注册表项修改时间间隔.

When a remote machine is offline, the MSMQ sender will periodically try to contact the receiver.  The interval gets larger the longer the machine has been offline.  You can also modify the interval via a registry key.

 

谢谢

穆罕默德·伊斯梅尔[MSFT]

Muhammed Ismail [MSFT]


这篇关于通过MSMQ保证交付的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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