CRDT
Definition
A conflict-free replicated data type (CRDT) is a data structure whose merge operation is commutative, associative and idempotent, so replicas that have seen the same set of updates converge to the same state regardless of order.
In practice
CRDTs let every replica accept writes during a partition and still converge afterwards, which suits counters, sets, presence, shopping carts and collaborative text editing. A grow-only counter, for example, keeps one count per replica and merges by taking the maximum of each, so increments are never lost.
Not every invariant fits a CRDT: "stock never goes below zero" or "username is unique" need coordination. CRDTs also carry metadata (tombstones, per-replica entries) that grows over time, and their merge semantics, such as add-wins for sets, may not be what users expect.
Example
A like counter stored as {eu: 1200, us: 950} merges with {eu: 1180, us: 990} to {eu: 1200, us: 990}, showing 2,190 likes on every replica once they sync.