Skip to content
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

Measure how much regular store query is used as a safety net #23

Open
Tracked by #221
fryorcraken opened this issue Jun 21, 2024 · 2 comments
Open
Tracked by #221

Measure how much regular store query is used as a safety net #23

fryorcraken opened this issue Jun 21, 2024 · 2 comments

Comments

@fryorcraken
Copy link

fryorcraken commented Jun 21, 2024

@richard-ramos added a regular store query that checks for any messages that have maybe missed.

This store query should be considered as safety net. We don't want this to be done forever as it consumes store resources.

What we want instead, is more efficient strategies such as:

  • detecting disconnection and then doing a store query for the disconnected time period only (relay reliabilit and light client reliability)
  • detecting missing message (e2e reliability) and querying these messages specifically.

Hence, the number of messages discovered via the regular store query is a good indicator of how efficient (or not) the other reliability strategies are.

If the regular store query finds 10 messages: these are 10 messages we should have found in another manner.
Do note that the regular store query may grab more messages than needed. It is important to only count the messages we are interested in (e.g. those we can decrypt because they are either DMs for us or messages for communities we are in).

tl;dr: count and report the number of new relevant messages found via the regular store query.

@richard-ramos can you provide the details of the regular store query change you have done?

cc @adklempner as discussed

Can't add labels, this is part of "telemetry: direct message" deliverable. cc @chair28980

@richard-ramos
Copy link
Member

The regular store queries work like this:

@vpavlin
Copy link
Member

vpavlin commented Aug 29, 2024

@richard-ramos After our analysis of the code yesterday, I realized there is msgTypebeing passed to OnNewEnvelopes where the type missing represents messages received via the regular store query which seems to be enough and made it really simple:)

https://github.com/status-im/status-go/blob/e8f97045bf73c54c5819a8f00f94d8dfa194ba38/wakuv2/waku.go#L1353

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants