用于学习目的的 Java 中简单的开源 DHT 实现

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5989029/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 13:51:55  来源:igfitidea点击:

Simple open source DHT implementation in Java for learning purposes

javadht

提问by danirod

I'm looking for recommendations for a simple open source implementation of a Distributed Hash Tablein Java to play around with. No fancy features, just for learning purposes, no production functionality needed. It should be simple to set up (e.g. 1 physical machine with n-JVMs) and well documented preferably with some examples, tutorials or starting guides.

我正在寻找有关在 Java中使用分布式哈希表的简单开源实现的建议。没有花哨的功能,仅用于学习目的,不需要生产功能。设置应该很简单(例如 1 台带有 n-JVM 的物理机),并且最好有一些示例、教程或入门指南。

Research yields these candidates: FreePastryand OpenChordbut I'm not fully convinced they meet my criteria simplicity-wise.

研究产生了这些候选者:FreePastryOpenChord,但我并不完全相信它们在简单方面符合我的标准。

Have you got any experience with these or other implementations? Recommendations?

您对这些或其他实现有任何经验吗?推荐?

Thanks & adios

谢谢 & 再见

采纳答案by Prof. Falken contract breached

Maybe JDHTwill fit the bill. I haven't checked it out myself, but it's written at a university, sometimes that means it's simple and used for teaching. :-)

也许JDHT会符合要求。我自己没有查过,但它是在大学写的,有时这意味着它很简单,用于教学。:-)

回答by Vincent Cantin

There is TomP2Pon Github.

Github 上有TomP2P

回答by Joshua Kissoon

I have been working on an implementation of Kademlialately. It's very simple to setup and use and it's well documented. There are several tests written that demonstrate the different functionality as well as a starting guide in the Readme.md file itself.

我最近一直在研究 Kademlia 的实现。它的设置和使用非常简单,并且有据可查。编写了几个测试来演示不同的功能以及 Readme.md 文件本身中的入门指南。

回答by eyal

You can use openkad

你可以使用openkad

回答by Travis

I started with free pastry..I've had a great experience with it. It was very simple to set up and run a ring of nodes. I've been mainly using PAST (File storage) and its been quite easy to get running. I'd suggest having a look at the PAST tutorial here. https://trac.freepastry.org/wiki/tut_past

我从免费糕点开始……我对它有很好的体验。设置和运行节点环非常简单。我一直主要使用 PAST(文件存储)并且它很容易运行。我建议在这里查看过去的教程。https://trac.freepastry.org/wiki/tut_past

The code is over simplified in my opinion but you say that is all you need so I guess thats ok.

在我看来,代码过于简化了,但你说这就是你所需要的,所以我想那没问题。