سؤال

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