spring-projects / spring-projects/spring-session

Investigate using Lua scripts in Redis session repositories

Open
#1,179 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: redis type: enhancement
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.