-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Currently, the Polly V8 core is based around non-generic ResilienceStrategy. The reasoning behind this is detailed here.
I would like to investigate the possibility of the core to be based around generic ResilienceStrategy<T>.
One major benefit it would bring is that we would not be able to combine unsupported strategies. For example, combining ResilienceStrategy<string> with ResilienceStrategy<double> which is allowed now on the lower-level although not by public API.
The idea is that non-generic resilience strategies will be just simple wrapper over ResilienceStrategy<object>. The public API will stay virtually unchanged. The only difference is that custom strategies will now derive from ResilienceStrategy<T> instead of ResilienceStrategy.
I am also curious about the performance impact of this change and how difficult it will be to combine non-reactive with reactive strategies. Based on this experiment we may decide to switch to generic core.