Operational transformation
The idea of operational transformation is to transform (or adjust) the variables of an editing operation according to the effects of previously executed operations so that the transformed operation can achieve the correct effect and maintain document consistency.