Closed Egyptmaster closed 4 months ago
Thank you @Egyptmaster
yes, his part can be improved:
The client should try to connect with each URI
@Egyptmaster can you please try https://github.com/rabbitmq/rabbitmq-stream-go-client/pull/310 ? thank you
Sure, but can do on Monday earliest
@Egyptmaster, please let me know if you have a chance to test it so I can release the new version. Thank you
@Gsantomaggio sorry for late response. I recently tried the feature brach and the issue seems to be fixed 👍 thanks for the quick fix
Describe the bug
Not sure if that is an expected behavior but it makes the usage of the client very hard. In case you are using multiple uris by
SetUris(uris ...string)
method all the hosts must be available at the point in time you create the environment withNewEnvironment
.Reproduction steps
will return an error in case one of the uris is not accessable at point in time
Expected behavior
From the documentation I would expect to silently accept one of the hosts/uris to be not available at any point in time and automatically use randomly another one. Otherwise it is really hard in context of kubernetes/docker when I can never guarantee that all nodes are available when my service tries to start.
Additional context
No response