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

Investigate RediSearch based indexing implementation

Open vpavic opened this issue 3 years ago • 4 comments

RediSearch is a Redis module that, among other features, supports secondary indexing. We should investigate it as an option for implementing session indexing, as a more performant alternative to our RedisIndexedSessionRepository.

vpavic avatar Aug 26 '22 15:08 vpavic

@vpavic sounds like an interesting direction, what did you have in mind?

gkorland avatar Oct 06 '22 14:10 gkorland

Hi @gkorland!

Nothing too specific is planned just yet. RediSearch module was brought up by @rwinch in one of our Spring Session syncs as an option we are looking to explore as a potential means to implement a more efficient indexing of Redis-backed sessions (in contrast to the current implementation that's outlined in RedisIndexedSessionRepository javadoc).

We'll probably want to get acquainted with RediSearch before having any specific opinion or plan.

vpavic avatar Oct 06 '22 21:10 vpavic

Spring Data Redis' Redis Repositories supports secondary indexes https://docs.spring.io/spring-data/data-redis/docs/current/reference/html/#redis.repositories.indexes

marcusdacoregio avatar May 22 '23 19:05 marcusdacoregio

Redis is bringing the Redis Stack exclusive features into its open source release https://redis.com/blog/redis-adopts-dual-source-available-licensing/#:~:text=Future%20Redis%20source%2Davailable%20releases%20will%20unify%20core%20Redis%20with%20Redis%20Stack%2C%20including%20search%2C%20JSON%2C%20vector%2C%20probabilistic%2C%20and%20time%2Dseries%20data%20models%20in%20one%20free%2C%20easy%2Dto%2Duse%20package%20as%20downloadable%20software.

marcusdacoregio avatar Mar 28 '24 18:03 marcusdacoregio