4

It seems pointless to me. I looked at the actual implementation. Kademila is used to discover peers, but there is no gained benefits. As when the node connects to peers, it simply just grab from the peers group. Kademila has no benefit? Correct me if im wrong

  • not an expert, but from Wikipedia Kademlia contacts only O(log(n)) nodes during the search out of a total of n nodes in the system. from my understanding, the "benefit", is the SPEED at which it can discover those peers. – nyusternie Aug 30 '18 at 1:43
  • speed at which it can discover "those" peers. what are "those" peers in your context? all full nodes are identical so what is the need for "those" peers? thx – user2584960 Aug 30 '18 at 18:10
  • in this context, when you DON'T have full peers and need to find the peer(s) with the data that you want. similar to sharding I guess. from my understanding, the address/hash acts like a locator, so with Kademlia you NEVER have to search the entire space to find your data (never more than half, but usually much less??). again, i'm not that familiar, just offering some info, as I'm also looking for a better understanding – nyusternie Aug 31 '18 at 4:08
  • thank you @nyusternie I realized this is a typical cargo cult engineering. they did not realize that they did not need kademlia. anyways, you looking for blockchain developer job? I am hiring. – user2584960 Aug 31 '18 at 17:44
  • you may need a 2nd opinion on some of that info lol. i'm always interested in open-source projects, message me – nyusternie Aug 31 '18 at 23:43
0

@user2584960: I agree and am confused as to the point Kademlia being used in Ethereum. If you aren't querying for content then what are you querying?

I believe Ethereum's use of Kademlia is like looking up a phone number in a phonebook and using the phone number as the query key. Alternatively, if you were to maintain metrics for each peer, then perhaps you could query each node's Kademlia table for nodes that satisfy the particular metrics you are interested in.

@nyusternie:

Ethereum's Kademlia implementation is only for peer discovery. Therefore, you aren't querying for content. Therefore, what the heck are you querying?

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.