java中的点对点存储库

发布于 2024-12-26 14:00:47 字数 148 浏览 3 评论 0原文

我正在开发一个可以点对点工作的java应用程序。在任何特定时间,全球都会有超过 5000 名客户在线。随着时间的推移,每个客户端都会创建小文件。我希望这些文件能够在所有客户端之间分发并存储,以便任何人都可以连接并下载文件转储。

有没有任何图书馆可以帮助解决这个问题?

I am developing a java application that will work peer-to-peer. At any given time, there will be over 5000 clients around the world online. Each of these clients will create small files over time. I would like these files to be distributed amongst all the clients and stored, so that anyone can connect and download the filesdump.

Is there any library that would help with that?

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

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

发布评论

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

评论(1

熊抱啵儿 2025-01-02 14:00:47

(我重新措辞是为了让它更严肃一些,因为它仍然是唯一的答案)

尝试找到一个 Java Bit-Torrent 库,我刚刚用 google 搜索了一下,有很多这样的库——我不想在这里列出它们因为我对他们中的任何一个都没有任何个人经验。

我可以告诉你,按照正常运行方式,比特种子仍然需要一些集中协调(跟踪器)。我非常确定 Vues 在“Trackerless”纯 p2p 模式下工作,因此在评估库时我会专门寻找它。

如果这不是您正在创建的一些广泛分布且资金雄厚的应用程序,我强烈建议您研究其他类型的共享文件系统,例如 dropbox 甚至 svn,它们不是 p2p,但众所周知它们可以可靠地工作,至少 dropbox可以在任何平台上完全在后台运行,无人值守和忽略多年,不会出现任何问题。

(I'm rephrasing this to make it a little more serious since it's still the only answer)

Try finding a Java bit-torrent library, I just googled and there were a bunch of them--I don't want to list them here because I don't have any personal experience with any of them.

I can tell you that the way it normally operates, bit torrents still require some centralized coordination (The tracker). I'm quite sure that Vues works in a "Trackerless" purely p2p mode so I would look for that specifically when evaluating the libraries.

If this isn't some huge widely-distributed and heavily financed app you are creating I highly recommend looking into some other kind of shared file system like dropbox or even svn, they are not p2p but they are known to work reliably and at least dropbox can work completely in the background, unattended and ignored on any platforms for years without trouble.

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