Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty ProxyServlet Retry feature

I don't think it's the proxy's responsibility to handle retry.
That's typically something that the incoming client is responsible for. 

Joakim Erdfelt / joakim@xxxxxxxxxxx


On Fri, Mar 15, 2019 at 4:26 AM Parvathy Unnikrishnan <meetpavy@xxxxxxxxx> wrote:
Hello,

I have query regarding retry options while using jetty ProxyServlet (async).

I have added a retry mechanism based on OnResponseFailure event. 
  • If proxying fails and it invokes onResponsefailure. There I submit a new request to the AyncContext using HttpClient.newRequest.
  • It has further capabilities like number of retries etc.
  • This works for retries with out any wait period.
What i am looking for is there any cleaner way to achieve retry that jetty offers.  The issue with the above logic is as it is in async mode, i cannot set a wait period and try it again after an interval like in usual retry features.

Any help with this would be greatly appreciated.

Thanks,
Parvathy.

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Back to the top