1

サービスバスの一時的なエラーに対する再試行ポリシーを実装しようとしています。私のシステムは、1秒、2秒、4秒、8秒、16秒、32秒、64秒、128秒のように指数関数的に試して欲しい。ServiceBusTransientErrorDetectionStrategyの指数再試行ポリシーの実装

private int minBackoffDelayInMilliseconds = 2000; 
    private int maxBackoffDelayInMilliseconds = 10000; 
    private int deltaBackoffInMilliseconds = 2000; 

    var defaultPolicy = new RetryPolicy<ServiceBusTransientErrorDetectionStrategy>(new ExponentialBackoff(maxRetries, TimeSpan.FromMilliseconds(minBackoffDelayInMilliseconds), TimeSpan.FromMilliseconds(maxBackoffDelayInMilliseconds), TimeSpan.FromMilliseconds(deltaBackoffInMilliseconds)) 

この記事は正しく表示されますか?このポリシーはシステムのパフォーマンスに影響しますか?

答えて

関連する問題