-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: abstraction over filter and store for subscriptions with message recovery #2008
Comments
Agree. This also ties in with using Store as a way to increase reliability in Filter, and related to #2154:
sharing this for reference when the original issue is being addressed to contextualise implementation notes |
Before attempting to implement this feature - we need to know if pings( We need to be clear in the assumptions and check them:
Side effect of the feature is: since right now Filter in Note: this issue is about delivering missing messages, where as #2017 is about scoring a peer by similar trick with Store. |
Blocked by store v3: #2029 |
Store V3 gives us an options to only return the stored message hashes, instead of the entire WakuMessage[] which is significantly more efficient for this usecase by
We will presume a Store node returning message hashes is reliable as previously concluded. This should further, internally, be improved with Store Sync.
This is an important point IMO. To enable message recovery with Store, we will have to by default make all messages non-ephemeral. This perhaps comes under a good default for the js-waku SDK. Adding a description over the
Sounds good! @weboko |
Indeed. The Store v3 "ping" functionality is indeed there to have a (fairly) lightweight mechanism to retrieve only message hashes based on some query criteria. My only comment would be that redundant Store checks should be avoided: lightpush can make use of regular Store checks to verify that a message has been published, filter can use the same checks to detect and retrieve missing received messages. In fact, this mechanism is agnostic as to what publish/subscribe methods are used and can be equally well applied to Relay. |
Unblocked, moving to todo. |
This is a bug report/feature request/support request/change request
Problem
If you run a filter subscription and go offline, any missed messages while offline will not be recovered. There can be other conditions that lead to missing messages from filter as well.
Proposed Solutions
We should explore an abstraction over both filter and store that is able to:
Notes
The text was updated successfully, but these errors were encountered: