我可以对多个发布者和只有一个订阅者使用 Pub/Sub 模型吗?
我需要将一些文件从不同的机器发送到仅一台服务器。据我了解,我可以使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以,但当只有一个读者时,我没有看到使用主题而不是队列的优势。
You can but I don't see the advantage of using a topic instead of a queue when there is only one reader.