Skip to content

Conversation

@Jarema
Copy link
Member

@Jarema Jarema commented Oct 16, 2025

Overview

User needs a way to customize how connections and reconnections are done.
Currently, there are only two modes:

a) client randomizes provided set of servers (and discovered servers)
b) client retains the order

What we want

Ability for the client to alter servers that are picked for reconnection.

Proposed solution

User has access to two callbacks:

Server info callback

When server sends to the client new INFO, which can happen when server discoveres new servers in the cluster

Reconnect callback

When client is about to reconnect
It's different from the current reconnect callback, which is purely informative

TODO

  • Improve the tests
  • make sure no default behavior is broken

Signed-off-by: Tomasz Pietrek <[email protected]>
Signed-off-by: Tomasz Pietrek <[email protected]>
Signed-off-by: Tomasz Pietrek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants