Data replication in Kademlia #5677
-
How are things going with adding data replication in Kademlia DHT? Is there anything planned for the near future? |
Beta Was this translation helpful? Give feedback.
Answered by
guillaumemichel
Nov 19, 2024
Replies: 1 comment 3 replies
-
You can read about Kademlia replication in the specs. Currently, by default all data written to the DHT is replicated on |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you use the
PUT_VALUE
operation (see specs), the value you write will be replicated to20
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