-
Notifications
You must be signed in to change notification settings - Fork 178
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
Conversation
8015954
to
850f26c
Compare
850f26c
to
d7bb636
Compare
@OlivierHecart please add a description on the actual changes introduced by this PR. |
} else { | ||
for src_face in tables | ||
.faces | ||
face_hat_mut!(face) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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.