Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring MVC - Implement aerospike session

I want to implement aerospike on my Spring MVC website to cache user sessions.

I could implement Redis caching, but it as it does not support distributed cache, I want to start to use aerospike, but I cannot find any lib or examples on how to implement Spring Session in aerospike, allowing me to turn off one of my machines and keep all active users still logged in.

The closest I could get to any implementation was this github repository, but it seems it was abandoned:

https://github.com/vlad-aleksandrov/spring-session-aerospike

This was the tutorial I've followed to implement User Session with redis:

http://docs.spring.io/spring-session/docs/current/reference/html5/guides/httpsession.html

like image 718
Gabriel F Avatar asked Jan 20 '26 12:01

Gabriel F


1 Answers

You should take a look at Aerospike play plugin. At the heart of it is the session store. The play plugin is a wrapper on top of it. The session store is available as an independent repo under mvn/gradle. It is an official one. So, you should be able to report issues and get help. You can reuse the session store component or write your own based on it.

like image 52
sunil Avatar answered Jan 23 '26 04:01

sunil