Garret Harp
01/22/2022, 8:31 PMOmi Chowdhury
01/22/2022, 11:40 PMOmi Chowdhury
01/22/2022, 11:42 PMSeth Geoghegan
01/23/2022, 3:55 PMSeth Geoghegan
01/23/2022, 3:55 PMEach item gets a version counter that's incremented once you update it. When you want to update an item, you first read it and store the current version number. Then you perform your update and increment the version number. Now you need to write it back to the table and this is when you add a condition. The condition is that the current version of the item needs to be the same as it was when you read the item originally. If that's not the case the write should fail, because somebody else modified the item in the mean time.
Garret Harp
01/23/2022, 4:01 PM