Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support Redis static master-replica auto-configuration #46957

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

Open
facewise wants to merge 1 commit into spring-projects:main
base: main
Choose a base branch
Loading
from facewise:add-support-autoconfiguration-for-static-master-replica

Conversation

Copy link

@facewise facewise commented Aug 26, 2025

Hi.

I'd like to suggest support for Redis static Master/Replica auto-configuration.
This auto-configuration makes LettuceConnectionFactory use RedisStaticMasterReplicaConfiguration, e.g. AWS ElastiCache with Replicas.
I know it's cautious since Jedis doesn't support for static master-replica connection in Jedis, while Lettuce does.

Please feel free to review this suggestion and share your thoughts.

Signed-off-by: 용현 <dydguskim@gripcorp.co>
Copy link
Member

Thanks for the PR.

Given that the static master-replica support is specific to Lettuce, I am not sure that the proposed additions should be as central to the auto-configuration as they currently are. For example, the properties could be nested beneath spring.data.redis.lettuce to indicate that they're only supported with Lettuce.

It also doesn't feel quite right for RedisConnectionDetails to know about a Lettuce-specific feature. I'm not sure how to address this as I don't think we've faced this problem and I don't think we have an established pattern for dealing with it.

Copy link
Author

I agree. Would it still be consideration if the properties go beneath spring.data.redis.lettuce and make RedisConnectionDetails unaware of this change?

Copy link
Member

I'd definitely like to see the code in that form please. IMO, it would be an improvement on the current proposal and something that we'd certainly consider.

facewise reacted with thumbs up emoji facewise reacted with rocket emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /