[英]Java Client-Server - Distributing Files to multiple servers
I want to write a Java Client/Server application which should do the following: 我想编写一个Java客户端/服务器应用程序,该应用程序应执行以下操作:
Bonus: One of these servers might be down at the time of the transmission, so it needs to receive the file on startup. 奖励:这些服务器之一在传输时可能已关闭,因此它需要在启动时接收文件。
What architecture or framework would be good and lightweight to enable this? 哪种架构或框架将是好的且轻量级的以实现这一目标? Is JGroups a good start? JGroups是一个好的开始吗?
edit: I have to assume the following minimal network: 编辑:我必须假设以下最小网络:
A JMS framework (ActiveMQ) can solve your problem using a queue and a topic: JMS框架(ActiveMQ)可以使用队列和主题来解决您的问题:
Using a durable topic is important so offline subscribers (your servers) get the file once they reconnect. 使用持久主题很重要,因此离线订户(您的服务器)在重新连接后即可获取文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.