Re:You might not need a CRDT
by rowanG077 on Tuesday December 06, 2022 @05:17AM
(#33877724)
The operation you are suggesting would not be based on CRDTs. One of the main points is that they are Conflict-free as the same suggest. So it's not allowed to reject a mutation. The merge operation "magically" has to ensure it will always confirm to the schema. That's precisely the hard part. Defining such a merge operation.
[ Parent
| on HN ]
Re:You might not need a CRDT
by randomsearch on Thursday December 08, 2022 @06:04AM
(#33906620)
Ok, thanks very much.
So what if the server just rebases the edit, and that results in the caption being set a second time? ie most recent wins. Don’t see how this would break a schema?
Encoding “adding a caption” as “add an additional child called caption” would be silly, as we know there can only be one caption. So the op would be “set the caption”.