I received a comment to my Optimistic Concurrency in Azure Cosmos DB a couple weeks ago from Jerry Goyal:
Sponsor: Do you build complex software systems? See how NServiceBus makes it easier to design, build, and manage software systems that use message queues to achieve loose coupling. Get started for free.
Can we somehow handle the concurrency among multiple documents (transactions)?Since ETags are defined on each document, you must build your concurrency around them. However, this made me start to wonder how to update multiple documents at the same time using their respective ETags. Meaning you would want both documents to update together only if both of their ETags were current. If one was valid and the other was out of date, none of the documents would update.
TransactionsIt’s pretty obvious that I’m looking for transactions within Azure Cosmos DB.