Open A5308Y opened 6 years ago
Implemented a working version that's fast enough and does not exceed maximum stack size. Needs some work before I feel comfortable including it in Methodoly though.
Implemented a working version that's fast enough and does not exceed maximum stack size. Needs some work before I feel comfortable including it in Methodoly though.
Hi @A5308Y. This sounds intriguing. I've been investigating using CRDTs in Elm for syncing. Are you open to sharing your initial working implementation on GitHub?
Sure. I put it up at https://github.com/A5308Y/elm-crdt there are still edge cases that need to be addressed. I'd be happy to have a short call about this if you're up for it.
Great! Thank you for the offer - I think I'll take you up on that.
I'll try it out first and get back to you with questions.
Possible Solutions
CRDTs
Seems to be the "correct" solution. Is this memory intensive? Possible Implementations:
Everything manually
When to save to localStorage?
When to save to server?
Scenario:
Client 1 checks off an action offline Client 2 renames the same action offline Client 1 goes online and saves its action What happens?