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

Avoid sending duplicate RPC calls during the background distribution task #44

Open
ChillFish8 opened this issue Apr 8, 2023 · 0 comments

Comments

@ChillFish8
Copy link
Member

Currently, datacake's eventual consistency module will send operations in batches to all nodes in the background, but this is in efficient when we're sending operations that a node might have already replied to and acknowledged.

Improving this cuts out some additional RPC calls in situations with a small number of nodes:

3 nodes with Consistency::Quorum will result in at least 3 RPC calls (1for the quorum, 2 for the background task)
this can be easily made into 2 and this scales as the consistency level is increased and the number of nodes increases.

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

No branches or pull requests

1 participant