Optimistic locking and automatic retry

added by DotNetKicks
9/18/2017 2:03:09 PM

1 Kicks, 385 Views

In this post, I'm answering a reader's question about how to combine an optimistic locking and automatic retry. Here's the question itself (paraphrased): Consider optimistic locking on the database level. When someone changes the data while the current operation is running, I need to retrieve that data again and retry the operation.