Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to read from master/slave/nearest node when using Redis Standalone/Sentinel #125

Closed
mp911de opened this issue Aug 29, 2015 · 2 comments
Labels
type: feature A new feature
Milestone

Comments

@mp911de
Copy link
Collaborator

mp911de commented Aug 29, 2015

Allow to specify routing from where to read data from when using Redis Standalone/Redis Sentinel.

Motivation: Users want to use a master/slave replication setup to use one instance for writes and the other one for writes. While a read-from-slave approach works on a static setup basis, slave connections stick to the same connection points when reconnecting. lettuce does not utilize the full range of nodes when reconnecting. When using Redis Sentinel, slaves can be promoted to masters, so a static setup is not possible. #114 introduces eventual consistency reads within Redis Cluster.

Benefits:

  • Increase availability by discovering slaves (INFO REPLICATION or SENTINEL SLAVES)
  • Utilize more nodes to use the available capacity
@mp911de
Copy link
Collaborator Author

mp911de commented Nov 4, 2015

As this feature is experimental it's going to be part of 4.1 and located within an experimental/master-slave package.

mp911de added a commit that referenced this issue Nov 11, 2015
This commit adds the API for master-slave setups featuring topology discovery and selecting the source for read operations (read from slave/master/nearest node). The change can improve the usage of slave nodes within a setup and requires no longer multiple connections managed by user code but the connection management is built into the client.
mp911de added a commit that referenced this issue Nov 24, 2015
This commit adds the API for master-slave setups featuring topology discovery and selecting the source for read operations (read from slave/master/nearest node). The change can improve the usage of slave nodes within a setup and requires no longer multiple connections managed by user code but the connection management is built into the client.
@mp911de
Copy link
Collaborator Author

mp911de commented Nov 24, 2015

Implemented.

@mp911de mp911de closed this as completed Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant