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

Enhance subscribers, queryables and liveliness tokens propagation to improve scalability for peers subsystems #1044

Merged
merged 7 commits into from
May 31, 2024

Conversation

OlivierHecart
Copy link
Contributor

@OlivierHecart OlivierHecart commented May 23, 2024

This PR changes the Interest protocol profile used from routers to peers. Previous profile was Pushed declarations, new profile is Pulled declarations. (See Notion).
In other words the Subscriber and Queryable declarations are not pushed any more from routers to peers but pulled by peers through the interest protocol.

@OlivierHecart OlivierHecart force-pushed the peers_interests branch 3 times, most recently from 8015954 to 850f26c Compare May 23, 2024 10:25
@OlivierHecart OlivierHecart marked this pull request as ready for review May 24, 2024 09:35
@OlivierHecart OlivierHecart linked an issue May 27, 2024 that may be closed by this pull request
@OlivierHecart OlivierHecart requested a review from Mallets May 27, 2024 10:22
@Mallets
Copy link
Member

Mallets commented May 28, 2024

@OlivierHecart please add a description on the actual changes introduced by this PR.

@fuzzypixelz fuzzypixelz self-requested a review May 30, 2024 08:34
} else {
for src_face in tables
.faces
face_hat_mut!(face)
Copy link
Member

Choose a reason for hiding this comment

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

If I understand correctly. Now we receive all the Subscriber declarations from the Router connected to one of the node in the peer-to-peer subsystem. Thus we need only forward peer Interest declarations to the Router and expect to receive Subscriber declarations.

I write this just to confirm that I understand the purpose of this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before, when receiving interest from a client, a peer only had to answer its interest with its local knowledge of subscribers. Now it needs to propagate this interest to Routers.

@Mallets Mallets merged commit 6772f2f into dev/1.0.0 May 31, 2024
19 of 21 checks passed
@Mallets Mallets deleted the peers_interests branch May 31, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Protocol update: Interests
3 participants