spring-projects / spring-projects/spring-session

How can I copy values from one redis to other when it has redis sessions?

Open
#839 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
1.9k
Forks
1.2k
Avg merge
4h 27m
Merged PRs (30d)
55

Description

I am trying to do this:

I have one redis instance(redis1) with sentinels working, it has the sessions.

I have other redis instance (redis2) with sentinels working, it has nothing.

When I enter to redis2 instace I want to look in redis1 for the session and store it (if need it) in redis2. I created a filter to do it but there are several issues with the serialization, I was wondering if there is any other way to do it? Each redis works great individually but when trying to do this I just cannot archive it.

Any ideas how?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files, tests, or entry points are mentioned. Start by clarifying how Spring Session should access redis1 and redis2 with Sentinel, including the session serialization and fallback behavior. Done would require a documented or implemented way to retrieve a session from redis1 and store it in redis2 without serialization failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, redis
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.