-
Notifications
You must be signed in to change notification settings - Fork 505
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
Add randomExpression to backoff annotation #266
Add randomExpression to backoff annotation #266
Conversation
@Deviad Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@Deviad Thank you for signing the Contributor License Agreement! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. It looks ok to me, but I am curious as to why this needs to be an expression; it seems to me this would be set by the developer and not need to be evaluated during initialization; just interested in the use case.
Instead of creating a feature flag to activate/deactivate it, and use @ConditionalOnProperty, which would cause code duplication (as I would need to copy paste an entire class), I can simply activate/deactivate it with a property set accordingly for each environment (and avoid code duplication) where I want to test it and make a note of the outcome. This is available already here: I managed to reproduce that with SPEL so that props are fetched from properties files. |
Thanks; I understand what it does, and how it does it; my question is why someone would want to do it? i.e. why would you want it different in dev Vs. prod? |
Cos we can can monitor the effects of the change as I said (in terms of throughput, back-pressure, etc.) and push it forward if it satisfies our needs (for a particular endpoint). |
No description provided.