Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

pubsub scheme subject to timing? #846

Closed
shuangjj opened this issue May 8, 2017 · 3 comments
Closed

pubsub scheme subject to timing? #846

shuangjj opened this issue May 8, 2017 · 3 comments
Labels
kind/support A question or request for support

Comments

@shuangjj
Copy link

shuangjj commented May 8, 2017

When node A subscript to TOPIC, nodes B, C, D are online and they can publish to TOPIC so that A can receive. If node E goes online after A subscribe to TOPIC, even E publishes message to TOPIC, A can not receive the message in this case. Is this correct for current development of pubsub protocol on ipfs? Is there a way to store and relay subscriptions like mqtt's broker scheme?

@daviddias
Copy link
Member

@shuangjj subscriptions are being propagated on connect, but it is an async operation, you are probably just seeing that happening on a 'warm up period'. Try use a setTimeout to double check.

@daviddias daviddias added the kind/support A question or request for support label May 10, 2017
@shuangjj
Copy link
Author

@diasdavid Thanks! It makes sense A doesn't get the message since E haven't updated its subscriber including A. Then there's a great chance A misses the message if E publishes message without checking the number of the subscribers.

@daviddias daviddias added the status/deferred Conscious decision to pause or backlog label Jul 9, 2017
@daviddias
Copy link
Member

Correct. The current implementation of PubSub (FloodSub) doesn't guarantee delivery. We are looking for ways to do that, see more on https://github.com/libp2p/research-pubsub

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/support A question or request for support
Projects
None yet
Development

No branches or pull requests

2 participants