Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

feat(peer-exchange): support peer retrieval by cluster/shard #628

Closed
wants to merge 6 commits into from

Conversation

harsh-98
Copy link

No description provided.

Copy link
Contributor

@jm-clius jm-clius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! I have added some comments. I'm not sure, however, if we should merge this or keep the PR open until we have more need for this feature. The current workaround seems to be sufficient, but we may need to evaluate.

@@ -44,12 +44,13 @@ The responder SHOULD provide a set of peers that has been retrieved using ambien
This both protects the responder's anonymity as well as helps distributing load.

To allow for fast responses, responders SHOULD retrieve peers unsolicited (before receiving a query)
and maintain a queue of peers for the purpose of providing them in peer exchange responses.
and maintain a queue of peers by their `cluster_id`/`shard` for the purpose of providing them in peer exchange responses.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might need to link to the RFC here where these concepts are defined.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no rfc for this. Previous approve was to maintain a LRU for peers, and remove the oldest when the capacity is reached. This cache data structure should account for cluster id and shard id for easier retrieval by shard. This is the PR where i created the maintained ds for go-waku. waku-org/go-waku#840

harsh-98 and others added 5 commits November 3, 2023 12:48
Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com>
Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com>
Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com>
Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com>
Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com>
@jimstir
Copy link
Contributor

jimstir commented Mar 7, 2024

Continue discussion at waku-org/specs#6. Some Waku rfcs are being moved to waku/specs repo as there will be a new rfc process.

@jimstir jimstir closed this Mar 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants