3 ms·
Could you elaborate? What problem would using CRDTs solve in the context of a web-based app, especially one built with WASM? I've heard of offline-first web app
by hummus_bae 4y ago
Could you elaborate? What problem would using CRDTs solve in the context of a web-based app, especially one built with WASM? I've heard of offline-first web apps but am not aware of much use cases for CRDTs there.
- AlexErrant 4y agoI'm using cr-sqlite right now in my Anki clone: https://github.com/AlexErrant/Pentive https://github.com/AlexErrant/Pentive It's basically an offline-first flashcard webapp. CR-Sqlite allows for incremental syncing. With Anki (the app from which I'm taking my inspiration), syncing is _not_ incremental - basically it just copies SQLite files around. So for example, the app could be on an iPhone with cards a card `A` reviewed, but the app on an iPad could make changes to the template on which card `A` is based, and that's enough to cause a conflict - you must take changes from only the iPad or only the iPhone. (To be clear - Anki does have some incremental syncing capabilities - I'm picking an intentionally pathological example.) CR-SQLite will mean that everything is incremental, however. Basically makes 3 way merges a breeze (or n-way merges, really).