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?

有帮助吗?

解决方案

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.

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top