transloadit / java-sdk

Java client for Transloadit upload service
https://transloadit.com
MIT License
11 stars 7 forks source link

Implement retries for HTTP requests #56

Closed Acconut closed 3 years ago

Acconut commented 3 years ago

Currently, the Java SDK does not retry requests. There are two cases in which automatic retries (i.e. without the SDK user's interaction) would be helpful:

kvz commented 3 years ago
  • if the network connection is stable but the server is rejecting the request because the per-customer rate limit is hit (here, a delay should be applied before retrying, see exponential back-off algorithms)

you could also read the retryIn property which is returned by our API, then you can wait exactly the amount of seconds required (+1 :) and no more.

cdr-chakotay commented 3 years ago

Implemented with release 0.2.0