1) Optimistic locking (update the version)

How it works

  1. Read phase
  2. Work phase
  3. Write phase (check & update)

Pros

Cons