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

Reduce number of updates commited to dht #3

Open
mattyg opened this issue Aug 8, 2023 · 0 comments
Open

Reduce number of updates commited to dht #3

mattyg opened this issue Aug 8, 2023 · 0 comments
Labels

Comments

@mattyg
Copy link
Collaborator

mattyg commented Aug 8, 2023

Queue and batch updates to publish to the dht, at a configurable interval with debounce.

  • on ydoc update:
    • remote_signal update to peers
    • add update to local queue
  • on js interval with debounce:
    • aggregate updates from queue into single state vector
    • publish state vector to dht
  • before class destroyed
    • aggregate updates from queue into single state vector
    • publish state vector to dht
@mattyg mattyg added the refactor label Aug 8, 2023
@mattyg mattyg changed the title Reduce number of actions commits by updates Reduce number of updates commited to dht Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant