You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/02/22 19:12:00 UTC

[jira] [Comment Edited] (HTTPCLIENT-1874) Exponential back-off retry mechanism

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16196041#comment-16196041 ] 

Michael Osipov edited comment on HTTPCLIENT-1874 at 2/22/20 7:11 PM:
---------------------------------------------------------------------

HttpClient already provides quite a sophisticated back-off mechanism. Please have a look those classes below and if possible please leverage APIs that are already in place

https://github.com/apache/httpcomponents-client/blob/4.5.x/httpclient/src/main/java/org/apache/http/impl/execchain/BackoffStrategyExec.java
https://github.com/apache/httpcomponents-client/blob/4.5.x/httpclient/src/main/java/org/apache/http/impl/client/AIMDBackoffManager.java
https://github.com/apache/httpcomponents-client/blob/4.5.x/httpclient/src/main/java/org/apache/http/impl/client/DefaultBackoffStrategy.java

The problem is that the original contributor never got around to documenting the APIs. See HTTPCLIENT-1101

Oleg 


was (Author: olegk):
HttpClient already provides quite a sophisticated back-off mechanism. Please have a look those classes below and if possible please leverage APIs that are already in place

https://github.com/apache/httpcomponents-client/blob/4.6.x/httpclient/src/main/java/org/apache/http/impl/execchain/BackoffStrategyExec.java
https://github.com/apache/httpcomponents-client/blob/4.6.x/httpclient/src/main/java/org/apache/http/impl/client/AIMDBackoffManager.java
https://github.com/apache/httpcomponents-client/blob/4.6.x/httpclient/src/main/java/org/apache/http/impl/client/DefaultBackoffStrategy.java

The problem is that the original contributor never got around to documenting the APIs. See HTTPCLIENT-1101

Oleg 

> Exponential back-off retry mechanism
> ------------------------------------
>
>                 Key: HTTPCLIENT-1874
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1874
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>            Reporter: Ioannis Sermetziadis
>            Priority: Major
>              Labels: stuck, volunteers-wanted
>             Fix For: Stuck
>
>
> I believe it would be useful to have an Exponential Back-off algorithm implementation, as an HttpRequestRetryHandler or under a new interface, named HttpRequestRetryPolicy.
> The implementation could provide both synchronous (similar to the existing retry mechanism) and asynchronous retries, using a provided ExecutorService/ScheduledExecutorService.
> Any feedback would be much appreciated. If you agree with the value of such a feature, I could proceed to the implementation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org