Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Create browser-optimized peer discovery mechanism #296

Open
albrow opened this issue Jul 22, 2019 · 3 comments
Open

Create browser-optimized peer discovery mechanism #296

albrow opened this issue Jul 22, 2019 · 3 comments
Assignees
Labels
browser enhancement New feature or request

Comments

@albrow
Copy link
Contributor

albrow commented Jul 22, 2019

This will likely involve adding WebAssembly support to the Kademlia DHT implementation or using a separate Peer Exchange protocol.

@albrow albrow added this to the Browser Support milestone Jul 22, 2019
@albrow albrow self-assigned this Jul 22, 2019
@albrow albrow changed the title Create Wasm-compataible peer discovery mechanism Create WebAssembly-compataible peer discovery mechanism Jul 22, 2019
@albrow albrow added the browser label Jul 25, 2019
@albrow
Copy link
Contributor Author

albrow commented Aug 19, 2019

I've done some testing in the browser and doing peer discovery through the DHT works fine for now. It is fairly resource intensive so we might want to switch to something else in the future. (Setting browser nodes to be a DHT client instead of a server helps a lot).

Going to de-prioritize this and remove it from the milestone.

@albrow albrow removed this from the Browser Support milestone Aug 19, 2019
@albrow albrow added the enhancement New feature or request label Aug 19, 2019
@albrow albrow changed the title Create WebAssembly-compataible peer discovery mechanism Create browser-optimized peer discovery mechanism Aug 19, 2019
@joeykrug
Copy link

https://gist.github.com/joeykrug/87498d3765814c6adb38d072e3f898c2 it looks like there's a bunch of options for in browser peer discovery that can be used redundantly (pulled this example from a libp2p repo), are these other options being used in case the DHT fails to bootstrap a user (see the peer discovery section in the config)?

@albrow
Copy link
Contributor Author

albrow commented Aug 26, 2019

@joeykrug thanks for sharing this. We are not currently using webrtc-star or websocket-star. There is no Go implementation of those packages and and they are likely going to be deprecated. We want to focus on using tools and packages that are going to have long-term support.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
browser enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants