1.

How To Handle Concurrent Updates To The Same Document?

Answer»

When precondition (ETag MATCH) FAILS REPLACE Document Async will throw Document Client EXCEPTION (Inner Exception to be specific).

To check if the reason of exception is non-current ETag we have to check if Status Code is Http Status Code. Precondition Failed. 

When precondition (ETag match) fails Replace Document Async will throw Document Client Exception (Inner Exception to be specific).

To check if the reason of exception is non-current ETag we have to check if Status Code is Http Status Code. Precondition Failed. 



Discussion

No Comment Found