Last modified: January 24, 2026

This article is written in: 🇺🇸

Concurrent Writes

Concurrent writes happen when two clients write to a database at the same time, unaware of each other's write. This can cause inconsistencies in the replicas.

[Write 1]   [Write 2]   [Write 3]
   \            |            /
    \           |           /
     \          |          /
      \         |         /
       \        |        /
       +------------------+
       |     Database     |
       +------------------+

Detecting Concurrent Writes

Last Write Wins

Immutable Keys

Version Numbers

Version Vectors