-
Notifications
You must be signed in to change notification settings - Fork 75
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
Gossip Message for indirect peers #174
Comments
Hey @sujith2s, yep in the gossip network peers not subscribed to a topic don't participate in message dissemination for that topic. The only exception is that you may publish messages for a topic even if you are not subscribed to it: so called
|
@Nashatyrev thank you for the prompt reply and it helps. I was little confused with the fanout feature you mentioned, is there a way we can achieve it? I tried to debug the code, when the floodpublish = false and the is_direct = false and following is the observations
So what I found was a peer should know the subscription details to send the message, but the subscription details are shared only to the connected peers. Thanks in advance. |
From the gossip spec :
You need not set up any params for using it. It is enabled by default and I'm not sure it could be of a large interest in your potential scenario.
Right. Any peer (in boundaries of gossip protocol) knows only about its connected peers. No further.
The pubsub is generally the protocol not intended to send a message to a specific peer. It's about broadcasting a message across peers subscribed to a concrete topic. A peer wishing to listen for messages (or publications) on a specific topic should find and connect to peers subscribed to this topic. What is your exact scenario? Also I would suggest you to look through the gossip spec. It could likely answer some of your questions |
@Nashatyrev thanks for the detailed explanation and it was very helpful. Got interested in libp2p, so tried some a chat app using the So thought of checking it in a java port, but jvm side i couldn't find kad or any dht implementation support, correct me if i am wrong. Mdns i could find for local peer discovery, so tried connecting to peers and tried the gossip. Do you have any suggestion for a replacement for Kad DHT in jvm port. So both will work in sync and topic discovery and connection to the topic peers. Thank you for your time. |
Hello,
Interested in libp2p projects, i was experimenting the gossipsub.. When host is directly connected to the other host then only i am able to receive the message from the peer.
If connection as follows
A -> B and B->C
and A and C are subscribed to a topic.
A sends a message to the topic, not receiving at C, until unless B also subscribes to the same topic.
condion is floodPublish false and gossipPeerScoreParam isDirect= false
Tried with floodPublish= true and is_direct = true also.
But result is the same.
Is there something i am missing?
Any leads will be highly appreciated.
The text was updated successfully, but these errors were encountered: