1.

What Is Configure Documentdb For Optimistic Concurrency Using The Etag?

Answer»

So now we have prepared for usage of OPTIMISTIC Concurrency. Now it is just to make sure that we USE it. The way DocumentDB implements Optimistic Concurrency is by using AccessConditions. These are added as RequestOptions in the ReplaceDocument API call.

I added the following two OVERLOADS in the DocumentDBRepository. One accepts DYNAMIC and one that accepts a Document (I RECOMMEND using the Document overload).

So now we have prepared for usage of Optimistic Concurrency. Now it is just to make sure that we use it. The way DocumentDB implements Optimistic Concurrency is by using AccessConditions. These are added as RequestOptions in the ReplaceDocument API call.

I added the following two overloads in the DocumentDBRepository. One accepts dynamic and one that accepts a Document (I recommend using the Document overload).



Discussion

No Comment Found