3 ms·
The whole point of CRDTs is that they work offline with no central authority and therefore no locks.
by samwillis 5y ago
The whole point of CRDTs is that they work offline with no central authority and therefore no locks.
- noduerme 5y agoOh. This is just a local storage thing? Well what's the point of worrying about concurrency at all then? Just FWIW; I'm hostile to this notion because it breaks decades of best practice about data integrity and claims to solve issues that aren't actually issues in real databases; plus the people boosting it seem to not understand anything about concurrency. If it's just a replacement for indexedDB or sqlite or something, well, who cares...
- samwillis 5y agoIt's not a replacement for indexedDB or sqlite, and it's not about concurency. It's about merging conflicting changes. This is a good article explaining the concept and implementation of a CRDT: https://www.inkandswitch.com/peritext/ https://www.inkandswitch.com/peritext/
- neoberg 5y agoLet's say you are developing a design application (think figma) which works in the browser. You don't want to lock the whole project just because someone needs to change a label somewhere. With CRDTs n people can open and edit the project at the same time and then push their changes and have them merged. Very similar to git. When working with git, you don't lock the file or line you are working on.