Pergunta

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?

Foi útil?

Solução

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.

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top