Azure 服务总线 QueueClient RetryPolicy 与 Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.RetryPolicy

Azure Service Bus QueueClient RetryPolicy vs Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.RetryPolicy

我想知道使用服务总线 QueueClient 编写弹性生产者/消费者的当前最佳实践。

我对 Azure 服务总线的用途有点困惑 QueueClient.RetryPolicy http://msdn.microsoft.com/en-us/library/microsoft.servicebus.retrypolicy.aspx

以及何时应该改用 Topaz 重试策略 http://msdn.microsoft.com/en-us/library/microsoft.practices.transientfaulthandling.retrypolicy.aspx

QueueClient 是否内置瞬态故障处理并且不需要使用 Topaz 库?

感谢您的帮助

当您仔细阅读您为 TOPAZ 提供的 link 时,您会看到:

Retired Content This content and the technology described is outdated and is no longer being maintained. For more information, see Transient Fault Handling.

然后 Microsoft Enterprise Library section for Transient Fault Handling 部分有一个 link,进一步清除它:

Note:

Important: Recent versions of SDKs for both Azure Storage and Azure Service Bus natively support retries. It is recommended to use these instead of the Transient Fault Handling Application Block

因此,请使用内置重试策略的服务总线 SDK。