Skip to content

Data replication in Kademlia #5677

Answered by guillaumemichel
mtbitcr asked this question in Q&A
Discussion options

You must be logged in to vote

If you use the PUT_VALUE operation (see specs), the value you write will be replicated to 20 peers by default. If you want the value stored to persist over time, the node that advertised it in the first place needs to republish it periodically, so that even if nodes go offline, the value is always stored on the closest peers and can be discovered by others.

If you want a system where nodes leaving the network would allocate their values to another node, or the DHT servers reallocating values by themselves, you would have to implement it yourself

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mtbitcr
Comment options

@guillaumemichel
Comment options

Answer selected by mtbitcr
@mtbitcr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants