Replies: 3 comments 8 replies
-
I can't think of any downsides. Listening on multiple relays will improve availability in case one of them is down. One note regarding your loop: You could optimize this by dialling all relays in parallel and looking at the |
Beta Was this translation helpful? Give feedback.
-
For what it is worth @dariusc93 here are the default values for the go-lib2p AutoRelay implementation, i.e. the component managing the connections to different relays: Long term it would be wonderful for rust-libp2p to have a AutoRelay implementation as well. @dariusc93 let us know in case you would be interested in contributing that. |
Beta Was this translation helpful? Give feedback.
-
Not sure if i should open up a new discussion or put the question here but i will probably go on and put my questions here and if I need to, i can open a different discussion, but I written an attempt in a autorelay. More of a PoC (so im bound to rewrite it anyway since this is implementation is a bit over the place while attempting to figure out the correct course). I collect a set of relays found after bootstrapping (pretty much checking the protocol and storing them in a behaviour) and use the one with the lowest ping to try to establish a reservation (probably a better determining factor but decided on that for now). however there are some questions I have:
EDIT: I did read around the specs abit more and also inspected go-libp2p so it looks like I should be looking for HOP and not STOP. I also noticed in go-libp2p that one way i could find relays by leveraging the kad providers so I may make changes to do that if how im doing it is not preferable EDIT 2: Right now question 3 think i have an idea for resolving it (though any opinion sand advice is appreciated). I think the only issue that might be more concerning regarding this is question 2 (will provide the logs soon) and 5 (though for 5 i might need to scan over the relay crate to see if its being done there). Is this intended to have multiple p2p protocols in the multiaddr when utilizing a relay or is it harmless? cc @mxinden |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In a couple of projects I am using relay and dcutr but what I been doing is connecting to multiple circuits. My question would be is there any downsides to doing this? While I havent had any issues so far, I've been wondering to myself if i should avoid listening on multiple but instead listen on one, which is what I originally have done before deciding on this.
Whats pretty much being done
Although I cannot imagine it being performant long term I have not had any issues but wanted to know the best solution in this case. I know doing something like autorelay that would be more preferred, which is something I do plan on doing in the near future.
Beta Was this translation helpful? Give feedback.
All reactions