Overwrite
For the overwrite strategy, also called last-one-wins strategy, each database modification attempt is accepted and the data provided simply overwrites the old data in the database.
In the example in the previous section Concurrency Control, this strategy is applied and leads to incorrect data. However, there are business cases for which this strategy is appropriate. An example is the recording of the stock count as determined during a physical inventory. It is desirable that the result of the last physical inventory, which is the most recent stock count, is always stored in the database
Services for which the last-one-wins strategy is appropriate are called change services. The term “change” indicates that the service overwrites the old data with new up-to-date data, ignoring the old data.