Vadim Dalecky2 years agoCompare and swap — or optimistic transactions on per-register granularity. Two options:
Operation contains the previous value of a register and succeeds only if that value matches the latest value in the central database.
Each register has a sequence number, operations succeeds only if the previous sequence number is still the latest value for that register.