176 points · by adamnemecek · 6y ago · 17 comments
In many systems, copies of some data need to be stored on multiple computers (known as replicas). Examples of such systems include:
Mobile apps that store data on the local device, and that need to sync that data to other devices belonging to the same user (such as calendars, notes, contacts, or reminders);
Distributed databases, which maintain multiple replicas of the data (in the same datacenter or in different locations) so that the system continues working correctly if some of the replicas are offline;
Collaboration software, such as Google Docs, Trello, Figma, or many others, in which several users can concurrently make changes to the same file or data;
Large-scale data storage and processing systems, which replicate data in order to achieve global scalability.
All such systems need to deal with the fact that the data may be concurrently modified on different replicas.
"Mine definitely doesn't have the name pedigree though, given that 3 of the biggest names in CRDT research run crdt.tech. Keep up the good work!
One addition that would be valuable to newcomers to the concept would be a comparison to other techniques (OT, rebasing, 3-way merge, LWW, …), the pros, the cons.
For instance, memory overhead (minimizing tombstone cost, truncation, …), intention preservation (lost with LWW, depends on careful implementation in OT and CRDT, with OT being potentially subtler because of the implementation difficulty of having a large number of operations to transform with each other), centralization (implied by rebases, unnecessary for 3-way merge, hard to avoid in OT), and byzantine resistance (can malicious users with write access corrupt the data permanently or get priority writes).
It would probably help them understand the problem space, and avoid them rejecting CRDTs altogether when they stumble upon its subtleties.
https://github.com/topics/crdt
Mind adding it to the site?