Skip to content

Support Master/Slave connections using Lettuce [DATAREDIS-580] #1155

Closed
@spring-projects-issues

Description

@spring-projects-issues

Mark Paluch opened DATAREDIS-580 and commented

Lettuce provides a Master/Slave API that allows slave reads. Master/Slave is either configured with a static node set (well-suited for AWS ElastiCache use) or Redis Sentinel.

Master/Slave allows configuration of its read-behavior (i.e. slave reads).

connection.setReadFrom(ReadFrom.MASTER_PREFERRED);

LettuceConnectionFactory could be configured to use StatefulRedisMasterSlaveConnection and apply read preferences


Issue Links:

  • DATAREDIS-724 Support for Slave reads for lettuce
    ("is duplicated by")

  • DATAREDIS-752 Integration of Lettuce with Spring data redis and master slave strategy

  • DATAREDIS-762 Add support for static Master/Slave setups with provided nodes

  • DATAREDIS-319 Configure redis in connection factory as read only or read&write and test it
    ("supersedes")

Referenced from: pull request #287

2 votes, 5 watchers

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions