-
Notifications
You must be signed in to change notification settings - Fork 598
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 Connection Config class #1110
Conversation
I like this idea but we should recognise that this is definitely a major breaking change that would invalidate a lot of tutorials and blog posts out there. I guess it's fine since we roughly do such changes once a decade 😅 |
Well it's only the IAuthMechanism that changed and the ConnectionConfig that's new. So I'm not sure how many turtorials would be affected by this. |
Yes, most content on the Web would not use |
So should we proceed with this or abandon? |
I personally think the gain isn't significant enough. |
One question though, whats the expectation when I change a property on the factory, shall all connextions be picking this change up or not? |
@bollhals all new connections instantiated by that factory should be picking it up. |
all new means not the old ones? |
How can or why would already instantiated connections be affected by a factory change? It has already produced them. |
E.g. NetworkRecoveryInterval is read once it is used. So it can be changed after the connection was established. Same for TopologyRecovery. Any Property that is accessed inside of the connection/model class is affected. |
6395708
to
adc9917
Compare
I just rebased this on |
3a4d05d
to
fd8c750
Compare
Move ConnectionConfig class to API, update approval test
fd8c750
to
9e91ead
Compare
Proposed Changes
Introducing a connection config (name to approve) per created connection out of the ConnectionFactory that is independent of the factory itself. Meaning the config is immutable.
Background on this change:
I had a project in which I had to create two connections to two different servers, so I initially reused the connection factory, but it ended up being the wrong decision, as it is often referred to during the lifetime of the connection.
Types of Changes
Checklist
CONTRIBUTING.md
documentFurther Comments
I'll update the API once the approach itself is wanted and approved.