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

fix: replaying history to new subscribers #18

Merged
merged 8 commits into from
Oct 28, 2024
Merged

Conversation

cablehead
Copy link
Owner

@cablehead cablehead commented Oct 28, 2024

This portion has always been overly convoluted. Directly, this PR fixes a bug that would hang up on new subscribers that couldn't keep up with the fire hose of history replay.

It moves all the work for setting up new subscribers into store.read and broadcasting updates is now handled directly by store.append. This means the store no longer requires a coordination command loop and that Store::spawn is now Store::new.

It's still convoluted, but hopefully a good bit more robust.

@cablehead cablehead changed the title fix: store read (wip) fix: replaying history to new subscribers Oct 28, 2024
@cablehead cablehead marked this pull request as ready for review October 28, 2024 15:43
@cablehead cablehead merged commit 93e791d into main Oct 28, 2024
2 checks passed
@cablehead cablehead deleted the fix-subscriber-join-2 branch October 28, 2024 18:44
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

Successfully merging this pull request may close these issues.

1 participant