The Google's Http Client has an implementation of this algorithm which essentially improves the way retrying a request in case of failures. Is it possible to make yours ?
Additional info:
https://developers.google.com/api-client-library/java/google-http-java-client/backoff
-1 ,
if it is user trigger, no data = no retry.
because server may return 500.
if you send data in background, you may retry yourself in own way.
I鈥檇 like to leave this up to the application layer. Backoffs might need to be scheduled in another process if a server is redeployed or an app is relaunched. It鈥檚 really awkward to hide the response indefinitely.