I’ve read many older posts about this same issue, all of which recommend exactly what we are already doing with our EventStore connection. We have a singleton connection in our container and if we lose the EventStore connection, the connection never reconnects. Maybe I am completely misunderstanding how this works?
var settingsBuilder = ConnectionSettings.Create()
.KeepReconnecting()
.FailOnNoServerResponse();
var connection = EventStoreConnection.Create(config.ConnectionString, settingsBuilder);
await connection.ConnectAsync().ConfigureAwait(false);
``
I have recently upgraded the client to 5.0.1 (from the now-obsolete NetCore version) because I saw there was an issue fixed associated with using both KeepReconnecting
and FailOnNoServerResponse
. I also tried using only KeepReconnecting
and got basically the same behaviour. Our server is running 4.1.1.0.
Are we using this incorrectly?
Thanks