How to upload addressed content to the DHT automatically based on Kademlia? #4909
-
From file-sharing and distributed-key-value-store examples, we are explicitly providing a key or file for a specific node. But my presumptions on Kademlia is that it will handle which node should hold on to which content based on their address and how "close" they are to that node's address. What is a standard approach to accomplish this in libp2p if there is any? Scenario would be: User sends chunks of data to a random node in the DHT network -> node (kademlia under the hood) would send these chunks to other nodes for storage |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
A DHT is a discovery protocol, not a storage protocol. Using provider records, you can figure out who is meant to store (aka "provide") a piece of data. Kademlia doesn't store data for you. You need a separate protocol to distribute the data in your network, for example bitswap. |
Beta Was this translation helpful? Give feedback.
A DHT is a discovery protocol, not a storage protocol. Using provider records, you can figure out who is meant to store (aka "provide") a piece of data.
Kademlia doesn't store data for you. You need a separate protocol to distribute the data in your network, for example bitswap.