Ocelot icon indicating copy to clipboard operation
Ocelot copied to clipboard

Retry calls to downstream

Open masterdimar opened this issue 5 years ago • 3 comments
trafficstars

Hi!

Like Ocelot is already using Polly. Is there a way to retry X times the calls to downstream to prevent occasionally fails?

masterdimar avatar Jan 10 '20 16:01 masterdimar

@TomPallister hi,

I see "Retry policies" feature in the readme but I could not find it in docs. Any sample or explanation about it?

suadev avatar Jun 06 '20 15:06 suadev

@suadev , @masterdimar Did you get any solution for above query? I need same behaviour .. need to retry downstream url in case of 503/408 error codes.

arvindabes avatar Apr 20 '21 10:04 arvindabes

@masterdimar Hi Pablo!

We don't think that extending/adding Polly features in Ocelot core is a good idea. We have a plans to remove Polly from Ocelot at all, because clients can apply Polly policies for requests to upstreams based on HTTP status of Ocelot upstream response. Final decision is ongoing...

@RaynaldM @ggnaegi FYI

raman-m avatar Nov 01 '23 12:11 raman-m

@masterdimar FYI New version 23.2 will have extended feature: Polly resilience pipelines. Please use it. See PR #1914
We believe you can implement any Polly pipeline you want.

raman-m avatar Mar 23 '24 10:03 raman-m