Should the nodes floodsub sends messages to be better defined? #713
Labels
difficulty:hard
priority:important
The changes needed are critical for libp2p, or are blocking another project
Milestone
Right now, when we publish a message with floodsub, this message is simply sent to all the nodes we are connected to and that are subscribed to the topic of the message.
The problem is that by itself, floodsub will never open any connection. If you just create a brand new swarm then publish a message, then nothing will happen because no connection exists. Opening a connection to a node that happens to support a topic we're interested in has to happen through a different mechanism that could be totally unrelated to floodsub.
On a theoretical level, the correct solution is to try to maintain a connection to every single node in the topology. That is however not realistically possible for any non-trivial example.
One could also argue that this is a fundamental limitation of floodsub because it is so basic, and that better pubsub systems are designed to tackle that.
The text was updated successfully, but these errors were encountered: