Question

Is there any point of using SqlAzureExecutionStrategy when SQL Server 2012 is hosted on Amazon EC2? The exceptions that SQL Azure is throwing are they unique (compare to regular SQL Server 2012) so that SqlAzureExecutionStrategy is only tuned to catch those?

Was it helpful?

Solution

SqlAzureExecutionStrategy is ultimately backed by SqlAzureRetriableExceptionDetector. Most likely the connection errors you have will be different than what SqlAzureRetriableExceptionDetector is looking for. However, its easy to determine what errors are occuring by leveraging the new logging abilities for EF6. Then you can roll-your-own ExceptionDetector and retry as needed.

Here's a great post walking through this entire process.

OTHER TIPS

Some of the errors are common with regular SQL Server, some are specific to SQL Azure (such as some of the throttling errors).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top