Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support LAN/WAN split DHT composition #567

Closed
willscott opened this issue Apr 7, 2020 · 0 comments
Closed

support LAN/WAN split DHT composition #567

willscott opened this issue Apr 7, 2020 · 0 comments
Assignees
Labels
kind/enhancement A net-new feature or improvement to an existing feature

Comments

@willscott
Copy link
Contributor

willscott commented Apr 7, 2020

A more specific case of routing helper that is not currently implemented by this set of utility libraries is the use case where we may want 2 instances of the DHT present.

In a world where a node has both a local network and is connected to the internet, we have a specific instance of composition that we should make easy to support:

  • A LAN and WAN dht instance
  • If there are peers in the WAN DHT routing table, Put, Provide, etc. requests should be made there. otherwise to LAN.
  • Get, FindProviders, FindPeer, etc. requests should pull data from both DHTs and combine them.
type DualDHT struct {
    LAN, WAN *DHT
}

// implementation of `routing.Routing` interface on `*DualDHT`
@willscott willscott transferred this issue from libp2p/go-libp2p-routing-helpers Apr 7, 2020
@Stebalien Stebalien added the kind/enhancement A net-new feature or improvement to an existing feature label Apr 7, 2020
This was referenced Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants