GithubHelp home page GithubHelp logo

Comments (3)

daviddias avatar daviddias commented on July 17, 2024 1

Hi @AlexFreeland, got an update for you :) Check:
https://github.com/libp2p/js-libp2p/tree/master/examples/peer-and-content-routing

Note, consider the current implementation as :)

from js-libp2p.

daviddias avatar daviddias commented on July 17, 2024

Hi @AlexFreeland, thank you for your feedback, it is highly appreciated

We know it is a little confusing at the moment, but there is a key reason for it. The simple answer is, the DHT present in go-ipfs, will be available in JavaScript at https://github.com/libp2p/js-libp2p-dht and that is going to be the 'first DHT'.

The 'second DHT', comes from the separation of concerns of Peer Routing and Content Routing, the explanation (and the realization) and can be found described here: ipfs/specs#1

libp2p spec presents some design decisions (https://github.com/libp2p/specs), getting the spec up to date is one of the goals of Q1 this year :)

from js-libp2p.

AlexFreeland avatar AlexFreeland commented on July 17, 2024

Thanks for the response @diasdavid

So to clarify: the "second DHT" will entail separate peer and content routing modules, somewhat analogous to the division of responsibilities between https://github.com/libp2p/js-libp2p-kad-routing and https://github.com/libp2p/js-libp2p-kad-record-store? Is the intention to update or supersede these repositories?

On a related note: I notice that implementations of the first DHT use the "/ipfs/kad/1.0.0" (and historically "/ipfs/dht") protocol; am I correct in assuming that the second DHT will employ separate protocols for peer and content routing?

from js-libp2p.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.