I have an application that for various reasons has to do quite a large number of retries before a particular http request completes successfully. However the number of successful completes reduces quite rapidly after about 50 retries. So by the time of the 800th retry only a tiny percentage of the requests complete successfully. Its a better user experience for the request to fail quicker, whereupon they can try the request again.
I'm trying to find a way of getting the optimal retry count - as in the best middle ground wherein we fail quickly after a point at which success is very unlikely.
I'm just wondering if there are any calculations or approaches for doing this?
Thanks!