Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The easiest DHT to implement

Tags:

python

p2p

dht

Which Distributed Hash Table (DHT) is easiest to implement in Python? Any good example that is not bloated?

I not am looking for a definition of DHT because I am more oriented and focused on design and implementation of such.

like image 587
mtasic85 Avatar asked Nov 09 '09 23:11

mtasic85


People also ask

What is DHT protocol?

A distributed hash table (DHT) is a distributed system for mapping keys to values. In IPFS, the DHT is used as the fundamental component of the content routing system and acts like a cross between a catalog and a navigation system. It maps what the user is looking for to the peer that is storing the matching content.

What is DHT in distributed system?

A distributed hash table (DHT) is a distributed system that provides a lookup service similar to a hash table: key–value pairs are stored in a DHT, and any participating node can efficiently retrieve the value associated with a given key.

What are distributed hash tables used for?

Why Is a Distributed Hash Table Used? Distributed hash tables provide an easy way to find information in a large collection of data because all keys are in a consistent format, and the entire set of keys can be partitioned in a way that allows fast identification on where the key/value pair resides.


2 Answers

In my job I'm working with entagled. I can't say it's great code, but it seems to be the only Kademlia implementation for Python around.

I think Kademlia has become the default DHT for most applications today, because it's quite simple and has fast lookups. At least in the academic world that I've seen so far.

like image 55
Jochen Ritzel Avatar answered Oct 26 '22 01:10

Jochen Ritzel


If you are focused on implementation, rather than looking for an out-of-the-box solution, this article might help a bit: http://www.linuxjournal.com/article/6797

like image 24
Benjamin Cox Avatar answered Oct 25 '22 23:10

Benjamin Cox