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

Introduce live message sending for EBT sessions #92

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

mycognosist
Copy link
Owner

While testing EBT I noticed that Manyverse sends messages of interest to active session peers immediately, instead of sending a partial vector clock indicating the update. This PR introduces that same behaviour to solar.

An event is emitted when the local key-value store is updated with a new message. The event includes the feed ID and the sequence number of the appended message. Those details are matched on in the EBT manager. If we have an active session with a peer interested in receiving messages from that feed, we send the message (as long as the sequence number is greater than the sequence number in the latest vector clock from that peer).

Live updates are now bidirectional when an EBT session is active between solar and Manyverse, as well as between two instances of solar.

@mycognosist mycognosist added the enhancement New feature or request label Feb 6, 2024
@mycognosist mycognosist merged commit 5ce58fd into main Feb 6, 2024
1 check passed
@mycognosist mycognosist deleted the live_msg_sending branch February 6, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant