feat(cluster): implement leader-aware connect mechanism in Rust SDK#2359
Merged
mmodzelewski merged 6 commits intomasterfrom Nov 19, 2025
Merged
feat(cluster): implement leader-aware connect mechanism in Rust SDK#2359mmodzelewski merged 6 commits intomasterfrom
mmodzelewski merged 6 commits intomasterfrom
Conversation
c1e8200 to
9795b31
Compare
Implement automatic client redirection to cluster leader when initially connected to follower nodes. Ensures write operations always reach the leader while maintaining transparent SDK experience. Rust SDK changes: - Add leader_aware reconnection logic to TCP, QUIC, and WS clients - Implement connection info tracking for monitoring client state - Auto-discovery and reconnection to leader from cluster metadata - Update client APIs with get_connection_info() method Server changes: - Add --follower CLI flag to start node in follower-only mode - Enhance cluster configuration validation (node topology, transport) - Update TCP/QUIC/WebSocket impl with cluster-aware connection handling Testing infrastructure: - BDD test suite (leader_redirection.feature) - Docker Compose cluster setup (leader + follower nodes) - Helper modules for cluster testing and node management
9795b31 to
12f6ea4
Compare
spetz
approved these changes
Nov 18, 2025
mmodzelewski
approved these changes
Nov 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement automatic client redirection to cluster leader when
initially connected to follower nodes. Ensures write operations
always reach the leader while maintaining transparent SDK experience.
Rust SDK changes:
Server changes:
Testing infrastructure: