Thanks for posting your question in the Microsoft Q&A forum.
In Cosmos DB, concurrent writes to the same document can be handled using optimistic concurrency control (OCC). This means that when you perform a partial document update, Cosmos DB checks the document's _etag
value to ensure that no other write operation has modified the document since it was read. If the _etag
value does not match, indicating that the document has been modified, Cosmos DB will return a 412 (Precondition Failed) status code, and you can handle the conflict accordingly.
https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/database-transactions-optimistic-concurrency
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **