ep2p / kademlia-netty

Java implementation of Kademlia DHT using netty and abstraction layer
MIT License
0 stars 1 forks source link
java kademlia kademlia-dht netty

Maven Central Github Releases Open Issues Liscence

kademlia netty

Status: [ready to use]. [active maintainance]. Playground (sample runnable project) available here.


Implementation of kademlia API DHT using:

This library uses BigInteger as Node IDs and NettyConnectionInfo as implementation of ConnectionInfo interafce.

However, it is still abstract, therefore you should implement some parts that are mentioned in kademlia API such as:


Examples

There are few working examples in tests directory.

Main example has everything for you to start understanding how this library works. It creates 2 nodes and stores data in DHT.

Custom DTO Example is on top of previous example, but this time we are serializing and storing a different DTO object called Person instead of a simple String.


Installation

Using maven:

<dependency>
    <groupId>io.ep2p</groupId>
    <artifactId>kademlia-netty</artifactId>
    <version>0.3.2-RELEASE</version>
</dependency>

Donations

Coffee has a cost :smile:

Any sort of small or large donations can be a motivation in maintaining this repository and related repositories.

Cheers