网络连接丢失时 MSMQ 会发生什么情况

发布于 2024-11-15 10:20:05 字数 297 浏览 2 评论 0原文

如果我通过网络使用 MSMQ,如果客户端和服务器之间的网络连接丢失,会发生什么情况?

那么您还可以将消息添加到队列中吗?如果可以的话它们存储在哪里?在客户端应用程序中,还是在客户端操作系统等中?

例如,如果我有一个 Windows 服务,它将项目添加到不同国家/地区的队列中。如果网络连接丢失并且Windows服务重新启动怎么办?消息会永远丢失吗?

问题的另一部分涉及消息的路由,是直接发送到接收队列,还是写入客户端的队列?这是否需要在发送服务器上安装 MSMQ,以及如何获得许可?

有没有好的文档来解释所需的设置?

If I am using MSMQ over the web, what happens if the network connection is lost between client and server?

So can you still add messages to the Queue, and if so where are they stored? In the client app, or in the clients OS etc?

For instance if I have a windows service which is adding items to a queue in a different country. What if the network connection is lost, and the windows service is restarted. Do the messages get lost forever?

The other part of the question relates to the route that a message takes, is it sent directly to the receiving queue, or is it written into a queue on the client side? Does that require MSMQ to be installed on the sending server, and how about licensing for that?

Is there any good documentation to explain the required setup?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一生独一 2024-11-22 10:20:05

更新:关于您的后续问题。是的,您必须在发送服务器上安装 msmq。没有任何许可成本,因为 MSMQ 是 Windows 的一部分,而不是一个单独的软件(就像 IIS)。以下是有关 Windwos 2003 上“设置消息队列”的文档。

更新前: 传出邮件存储在发送服务器的传出队列中。如果重新启动发送服务,它们不会丢失。他们将在传出队列中等待(可以使用 msmq 管理器进行检查),我不知道多久。

如果 msmq 服务或发送服务器重新启动。那么“特快”消息就会丢失。表达或可恢复是非转录消息的属性。

Update: Regarding your follow up question. Yes you have to install msmq on the sending server. There aren't any licensing cost, because MSMQ is part of windows and not a separate software (just like the IIS). Here is documentation on "Setting Up a Message Queue" on windwos 2003.

Before Update: Outgoing message are stored in the outgoing queue of the sending server. They are not lost if the sending service is restarted. They will wait in the outgoing queues ( which can be inspected with the msmq manager ) for I don't know how long.

if the msmq service or the sending server are restarted. Then "express" messages will be lost. express or recoverable are properties of non-transcriptional messages.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文