Travix-International / Hystrix.Dotnet

A combination of circuit breaker and timeout. The .net version of the open source Hystrix library built by Netflix.
https://travix-international.github.io/Hystrix.Dotnet/
MIT License
95 stars 16 forks source link

Implement retry #2

Closed markvincze closed 7 years ago

markvincze commented 7 years ago

When executing operations that can occasionally fail (for example because of flaky network connection), it'd be nice to be able to tell Hystrix to automatically retry.

Configuration per command:

Questions:

JorritSalverda commented 7 years ago

In the original Hystrix they only do a single retry and only for network issues, not if the dependency itself returns an error. More retries are unlikely to fit inside the time limit and kind of defeat the purpose of failing fast for any dependency that's causing problems.

markvincze commented 7 years ago

That sounds good to me, ~90% of the errors I see for which a retry would make sense are network hiccups.