spring-session icon indicating copy to clipboard operation
spring-session copied to clipboard

Investigate using Lua scripts in Redis session repositories

Open vpavic opened this issue 7 years ago • 0 comments

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.

vpavic avatar Sep 04 '18 21:09 vpavic