Vadim Dalecky2 years ago

Compare and swap — or optimistic transactions on per-register granularity. Two options:

  1. Operation contains the previous value of a register and succeeds only if that value matches the latest value in the central database.

  2. Each register has a sequence number, operations succeeds only if the previous sequence number is still the latest value for that register.