I have a few stored procedures in Cosmos DB
that I'd like to convert to .NET transactions. Recently, I saw this post https://devblogs.microsoft.com/cosmosdb/introducing-transactionalbatch-in-the-net-sdk/ that goes over transaction support. I was also able to test it, and it seems to be working fine.
I know that .NET has added built-in retry logic into many of its supported packages. Does TransactionalBatch
have any built-in retry policy? What is the recommended approach to retrying any failures? The post above is looking at IsSuccessStatusCode
. Should we retry once the status is fail?