A5308Y / Methodoly

GNU General Public License v3.0
2 stars 0 forks source link

Effortless synchronization #46

Open A5308Y opened 6 years ago

A5308Y commented 6 years ago

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?

A5308Y commented 5 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.

julianpistorius commented 5 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.

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?

A5308Y commented 5 years ago

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.

julianpistorius commented 5 years ago

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.