Show TOC

FunctionDelta Update

 

For the delta update strategy, also called everybody-wins strategy, each database modification attempt is accepted as well, but in contrast to the overwrite strategy, the data provided by different consumers is accumulated in the database.

For instance, in the example in the previous section Concurrency Control, the applications could provide the changes to stock quantity instead of the new total stock count. All provided changes can then simply be added to the current stock count in the database with the database always containing the correct stock count.

The feasibility and implementation constraints of delta updates depend on the concrete business semantics of the service.