spring-projects / spring-projects/spring-session
Investigate using Lua scripts in Redis session repositories
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 1.2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 55
Description
The Redis session repository implementations are currently not executing data store operations atomically, which can be challenging to deal with in highly concurrent environments where race conditions are common. It also requires multiple roundtrips to Redis server in order to complete what is a logical session repository operation.
We could look into modeling our operations as Lua scripts, similarly like for instance Spring Integration's RedisLockRegistry does. See also reference on Redis EVAL command.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Redis session repository implementations and compare their operations with Spring Integration's RedisLockRegistry. Read the Redis EVAL reference and determine whether the logical repository operations can be modeled as Lua scripts that execute atomically with fewer Redis roundtrips.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, lua, redis, spring
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100