Skip to content

Supporting multiple delegated routing endpoints #402

Answered by achingbrain
2color asked this question in Q&A
Discussion options

You must be logged in to vote

if Helia handles routing, does the underlying js-libp2p instance also need a routing mechanism?

Yes, if routing operations are invoked. This may happen behind the scenes, e.g. if we interact with an RSA peer and we don't have their public key, we (should) go to the routing to fetch it.

libp2p doesn't know about Helia so it can't call the Helia routing to do the same thing. If it did it'd end up invoking itself since it's the routing implementation for Helia.

we instantiate js-libp2p with the delegated routing service which only supports one endpoint

You can use multiple instances of the delegate routing service with different endpoints?

Is there really a use-case for multiple delegat…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by 2color
Comment options

2color
Oct 24, 2024
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #400 on October 24, 2024 11:38.