-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce initial reconnection policy #231
Conversation
da3daed
to
d51b3dc
Compare
28c1ae2
to
270ba1e
Compare
This is good to see! A couple of thoughts: The ideal behaviour would be for the reconnect attempts to happen in the background or to be deferred (this could be configurable in the policy) so that That's how Postgres, Redis etc. drivers/clients generally behave, where the client can be initialized without blocking, and the actual connection and discovery happen based on activity ( Thank you. |
Thanks for taking your time reviewing it and commenting. |
Do we want to check the behavior with different |
270ba1e
to
24912ab
Compare
Done, please take a look |
|
We would want to retry on initial connection to the cluster, in case if cluster is not ready yet.
This PR introduced new
InitialReconnectionPolicy
option toServerConfig
, by default it isNoReconnectionPolicy
, to ensure old behavior.Closes #230