I have a large application that has thousands of cfquery tags throughout the code base. One version of it runs in a datacenter with MS Sql Server, and another version of it is running in the Azure cloud.
The datacenter version is very solid with no connection issues but in the cloud version,
Azure SQL DB connections are a little more transient and subject to minor outages, and I have connection problems every so often.
Azure Support says this is normal for this cloud environment and that I should recode my app with retry logic to account for it.
I was wondering if there was anything already built into Railo/Lucee middleware to assist globally for transient connection errors, rather than having to put retry logic everywhere throughout my app.
Surely someone else has run into this and had to deal with it?
I was considering writing a custom JDBC driver to do the retry logic right in the driver, but maybe there is a better way?
And not sure what the implication would be for a transaction that has many cfqueries in it, but I'm betting that 99.9% of the time the failure would occur on the first operation in a transaction (given that transactions are relatively short) and could be fully recovered via the middleware level.