Change default reconnection policy to Exponential by lolodi · Pull Request #1896 · StackExchange/StackExchange.Redis (original) (raw)
What if we add a new class DefaultReconnectRetry, which uses ExponentialRetry, but applies the more aggressive 1.5 curve?
That way anyone who's using ExponentialRetry with its default 1.1 curve will be unaffected, but anyone who's not specifying a retry policy will get the benefit of the 1.5 exponential curve.
If that adds more complexity than it's worth, we could just switch the default to use ExponentialRetry with 1.1. That limits the benefit somewhat because 1.1 is pretty small, and doesn't provide much curve in the scale of number of retries needed for a typical reconnect. But it would be a step in the right direction, and make a switch to Exponential 1.5 in 3.x less abrupt.