hazelcast / hazelcast-csharp-client

Hazelcast .NET Client
https://hazelcast.com/clients/dotnet/
Apache License 2.0
102 stars 49 forks source link

[TRACKING ISSUE] Introduce a property to control the reconnection behavior of the client [API-2036] #836

Closed hz-devops-test closed 1 year ago

hz-devops-test commented 1 year ago

The tracking issue for the Java side PR.

See https://github.com/hazelcast/hazelcast/pull/24772 for details.


During reconnections, the client would normally try to connect to the last known member list, and then try the configured member addresses.

This logic is fine for most of the use cases, but for some users who expose their multi-member clusters via a single load balancer or node port, this might not be what we want. In their use cases, cluster members are not accessible from the client directly, the connection has to be established by the service in front of the cluster members.

For such scenarios, not trying to connect to the members from the last known member list is probably what we want.

We decided not to change the default behavior, or be smart and try to detect such cases. Instead, we decided to introduce a private property for now, and share that with the customer that wants this feature. In the future, depending on the feedback and our own discussions, we might promote this to a public property as well.

emreyigit commented 1 year ago

It can be raised again when the request is made for .net client.