-
Notifications
You must be signed in to change notification settings - Fork 15
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
Use MDNS to find DHT peers instead of discovery keys #7
Comments
Another way to describe your flow is to simply resolve bootstrap.hyperswarm.local to yourself and use that as the bootstrap address. I think your idea has merit, def worth trying out. |
This sounds almost exactly like what we were hoping for, only we called it "peer discovery". In our use-case most documents have a small number of peers associated with them and there's a high degree of likelihood that the feeds you want will be found in a peer you're already talking to. (We're doing a lot of small-group collaboration rather than large-audience publication.) |
pvh: That sounds pretty relevant to the stuff @tinchoz49 is doing with @geut |
Is there any way to extract that logic into a reusable module? |
We don't have an implementation. We've retreated to our discovery-cloud implementation which is just a websocket echo server at the moment and look forward to returning... |
@davidmarkclements @mafintosh thoughts on this? |
It'd be cool if we adhered to zeroconf. It'd make my life a bit easier for react-native apps via react-native-zeroconf |
Here's a conversation we had about this in the Dat working group on IRC:
|
The use of MDNS in discovery-swarm gets kind of noisy as you get more and more archives that you're replicating.
I propose to reduce network traffic by using MDNS to discover other hyperswarm nodes to form a DHT that's used for the actual peer discovery.
The flow would look like:
Some cool properties:
The text was updated successfully, but these errors were encountered: