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

Compare And Swap (CAS) synchronization protocol #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Gozala
Copy link
Contributor

@Gozala Gozala commented Apr 19, 2024

This just moves https://hackmd.io/@gozala/w3-memory into RFC space. It is a sketch of the synchronization protocol providing Compare and Swap (CAS) semantics.

Primary intention here is to allow point to point synchronization with optimistic writes. It is inspired by git where you push changes but if head has changed you have to rebase (or merge) and then push. Except here we leverage prolly trees as it can represent complex state that can be efficiently synced between replicas without retaining complete history of changes. However if retaining history is desired that could still be done by encoding say merkle-clock in prolly tree at the top level or at individual entry level.

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