Skip to content

Jitter recommendation is wrong #23225

@sander1095

Description

@sander1095

Hello.

The page recommends a jitter strategy and has a link to https://github.com/App-vNext/Polly/wiki/Retry-with-jitter for more information. The page contains the same example code as the docs, BUT at the bottom of the page it says the following:

For production usage, we recommend one of the jitter algorithms offered in Polly.Contrib.WaitAndRetry.
The Polly team originally recommended a widely-referenced jitter strategy described here. However, analysis of this strategy by community members suggested this strategy still exhibits elements of peaks/bunching (see fifth graph from top in that link), especially at the first retry.
We now recommend a new strategy delivered in Polly.Contrib.WaitAndRetry. This provides an overall smoother distribution of jittered retry timings, as shown in the third-from-bottom graph in this link.
For configuration, usage and deeper info, see Polly.Contrib.WaitAndRetry.

That is why I believe that the docs should be updated to recommend the library instead of the custom code microsoft provides.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions