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

Question: how to create an RGA CRDT on server #1

Open
dansteingart opened this issue May 17, 2021 · 0 comments
Open

Question: how to create an RGA CRDT on server #1

dansteingart opened this issue May 17, 2021 · 0 comments

Comments

@dansteingart
Copy link

dansteingart commented May 17, 2021

Many thanks for sharing this clean and lightweight RGA example, I've learned much about CRDT by playing with it. I've implemented it in the beta branch of http://github.com/dansteingart/pithy, and it's working quite well. What i'm about to describe below is likely obvious to those practiced in CRDT, so thank you in advance for your patience.

There's a set of edges case (I guess a surface?) where history request conflicts with an initial load of data from the sever, I think it's because the clients are using RGA but the server is not. Thus, the standard GET/POST I'm using to read and write data is sometimes in a race condition with the client CRDT. Is there a simple way to implement an RGA point on server from which the data store is served/written so I can avoid this other pathway?

I've checked out y.js and other libraries that seem to do this, but it's buried under the hood and I'd like to avoid the code bloat and bundling overhead these other libraries introduce.

Thanks for your time.

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