You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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.
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:
INFO REPLICATION
orSENTINEL SLAVES
)The text was updated successfully, but these errors were encountered: