我可以对多个发布者和只有一个订阅者使用 Pub/Sub 模型吗?

发布于 2024-08-29 08:29:10 字数 203 浏览 2 评论 0原文

我需要将一些文件从不同的机器发送到仅一台服务器。据我了解,我可以使用 JMS api +(例如)ActiveMQ 作为代理。有两种模型:p2p 和 pub/sub。我想使用 pub/sub 模型,但问题是我的订阅者不多,我只有一个订阅者(服务器)和许多发布者。问题如下:我可以根据我的情况使用发布/订阅模型吗?如何将文件从不同的机器发送到该服务器上的唯一一个主题?可能还有其他想法,非常感谢。

I need to send some files from different machines to only one Server. As I understand, I can use JMS api + (for example) ActiveMQ as broker. There are two models: p2p and pub/sub. I would like to use pub/sub model, but the problem is that I haven`t few subscribers, I have only one Subscriber(Server) and many Publishers. The question is the following: can I use pub/sub model for my situation and How can I send files from different machines to Only One Topic, on that Server sibscribed? May be any other ideas, thanks a lot.

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

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

发布评论

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

评论(1

这样的小城市 2024-09-05 08:29:11

您可以,但当只有一个读者时,我没有看到使用主题而不是队列的优势。

You can but I don't see the advantage of using a topic instead of a queue when there is only one reader.

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