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

Use CRDTs for the user state #413

Open
icidasset opened this issue Feb 14, 2024 · 0 comments
Open

Use CRDTs for the user state #413

icidasset opened this issue Feb 14, 2024 · 0 comments

Comments

@icidasset
Copy link
Owner

icidasset commented Feb 14, 2024

Currently state is synced without performing merge conflicts, the latest write always wins. Ideally we'd use CRDTs to avoid this problem. So when for example, two devices add a favourite at the same time and the state is fetched by both devices, it contains both new favourites instead of just the one that performed the last write.

It would also be great to have a signalling server that notifies every active client of new state updates. This does mean you'd need an additional server, so we'd probably need to add the ability to link a signalling server/service that uses a particular protocol.

Example of a library to use: Automerge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant