An Interest In:
Web News this Week
- March 22, 2024
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
April 24, 2022 05:16 pm GMT
Original Link: https://dev.to/dogealgo/last-write-wins-a-conflict-resolution-strategy-2al6
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To