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

docs request: describe how multiple writers interact in a document #58

Open
b5 opened this issue Sep 8, 2023 · 0 comments
Open

docs request: describe how multiple writers interact in a document #58

b5 opened this issue Sep 8, 2023 · 0 comments
Assignees

Comments

@b5
Copy link
Member

b5 commented Sep 8, 2023

Great question from the IPFS Discord:

What about multiple writers? How a conflict is resolved when multiple users trying to update a value under the same key in a shared document? Does last write wins or how it works?

Last write wins is exactly correct. What isn't totally obvious is documents are really a kind of "multiverse", where all entries in the namespace are prefixed with the author pubic key & write timestamp. Each writer keeps the latest of all of their entries. You can filter a document keyspace using the author argument.

Steps to fix:

[ ] add a "conflict resolution" section to the documents layer that expands & completes the above description
[ ] make a new diagram showing the "multiverse"
[ ] describe some common scenarios, outcomes, and downsides

@b5 b5 self-assigned this Sep 8, 2023
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