Backend & systems·Consistency and replication
two replicas both took offline edits and merged them without a conflict, because the data type only supports operations that commute.
CRDT
Also calledconflict-free replicated data type
A data structure whose merge is associative, commutative and idempotent, so replicas converge regardless of the order updates arrive in. It removes conflict resolution as an application concern for the shapes it supports — counters, sets, sequences. The constraint is that your semantics must fit one of those shapes; arbitrary business invariants do not.