Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 24, 2022 05:16 pm GMT

Last Write Wins - A Conflict resolution strategy

Imagine, a file or database is written concurrently by 3 processes.

Eventhough from the user point of view where all the file write processeses happen at the same time, but that doesn't mean all three can co exist in the same file or database field right?

It will break consistency.

So, we need to make sure only the last written data as the final data for the file, in a given time.

How do we consider which data is the last data?

Timestamp of course!

Timestamp is used for each write operation to identify which write is the final write.

MongoDB and Cassandra are examples of having Last Write Wins Strategy.

More importantly in Cassandra if we are quering an update, each column has its own timestamp value.

Hope you guys find usefull

Support us by Buying us some Cookies

Visit our site Doge Algo


Original Link: https://dev.to/dogealgo/last-write-wins-a-conflict-resolution-strategy-2al6

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To