-
Notifications
You must be signed in to change notification settings - Fork 325
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
Should embedded node use js-libp2p-websocket-star? #457
Comments
@lidel I think yes, as a temporary measure. @diasdavid what say you? |
@lgierth ipfs-companion now ships with js-ipfs and will use the browser flavour emedded js node if no external daemon is available. I don't think we have a huge install base yet, but this could start to put more pressure on the gateway. Given the recent infra issues, would you advice against adding |
@vyzo @mkg20001 what's the state of ws-star? @olizilla ws-star is separate from the gateway, so it's thankfully not affected by the same issues. However there are (or were) scalabality limitations in ws-star which would lead me to say "don't yet", but things might have improved. Connecting to the same two |
It basically is or was one big bottleneck and single point of failure, but quite some work has been into improving that |
Its days are numbered I hope :) |
https://github.com/libp2p/js-libp2p-rendezvous will add a new discovery mechanism to libp2p. This thing will be used to build a new ws-star that's hopefully better than the old |
The writing is on the wall, it should be used for demos, not for prod :) |
@diasdavid do you have any advice on the default config that we supply to js-ipfs from ipfs-companion? We'd like to be able to give a better user experience for people not running an external daemon. |
Depends on what you want to achieve at the moment. If the experience is just to add files to IPFS and make them viewable in the gateways, then WebSocket-Star is not needed for that case. That said, using WebSocket-Star should be risk free as long as you handle the error that will come out when the Rendezvous point is down. If it is down, then you should do a second attempt at starting the node without the websocket-star transport. |
libp2p/js-libp2p-websocket-star#61 will make this much more robust:
|
As of v2.2.0 the embedded node (js-ipfs) connects to 8 bootstrap servers and.. that is it.
Running browserified version of js-ipfs in WebExtension context limits our transport options to websockets and webrtc. AFAIK the latter is not stable enough to be enabled by default.
But does it make sense to provide a websockets transport with a relay point in the middle by default?
js-libp2p-websocket-star PoC
README at js-libp2p-websocket-star states that:
Indeed, if embedded node is started with it (thanks to Node Config on Preferences screen – #395):
logs show:
and peer count grows above 8 bootstrap servers.
The text was updated successfully, but these errors were encountered: