Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Retryable jitter #11631

Open
arndey opened this issue Feb 28, 2025 · 3 comments
Open

@Retryable jitter #11631

arndey opened this issue Feb 28, 2025 · 3 comments
Assignees
Labels
info: good first issue Good for newcomers type: improvement A minor improvement to an existing feature

Comments

@arndey
Copy link

arndey commented Feb 28, 2025

Feature description

Please add jitter parameter to io.micronaut.retry.annotation.@Retryable to avoid thundering herd problem, like:

@Retryable(
    attempts = "5",
    delay = "100ms", 
    multiplier = "2.0",
    maxDelay = "2s",
    jitter = "0.25" // Random deviation ±25%
)
@yawkat yawkat added info: good first issue Good for newcomers type: improvement A minor improvement to an existing feature labels Feb 28, 2025
@gargsuraj12
Copy link

gargsuraj12 commented Feb 28, 2025

@arndey @yawkat the type of the jitter should be the same as the multiplier which is @digits(integer = 2, fraction = 2)
also, I would like to take this up, could you please assign it to me?

@yawkat
Copy link
Member

yawkat commented Feb 28, 2025

sure, same format as multiplier makes sense

@gargsuraj12
Copy link

@yawkat raised the PR yesterday and signed CLA but the build is not finishing
#11636
any pointer what can be done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info: good first issue Good for newcomers type: improvement A minor improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants