-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Community extension : caffeine cache #2039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for sharing this @gotson! It's great to see Spring Session used with another backing data store. Is that something you are planning on adding? |
Hi, I am not sure to understand what's clustered session in that context? Do you mean sessions that can be accessed by multiple instances of the same application? |
Yes, it would need to support multiple instances of the application. |
Well, no it does not, and will not, because Caffeine is a local cache. See it as an enhancement of MapSessionRepository that handles expiration and events. It can be used with Spring Security too, since it implements Its aimed at project that don't need clustering, but need Spring Session (for example to use Hope that clarifies a bit. |
Thanks for the explanations @gotson, that clears things up for me. I will need to put some further thought into this and discuss with the broader team. I will get back to you on this thread once I have a better idea of how this fits in with the rest of Spring Session. |
Thanks, don't hesitate to ask questions if you need more details! |
Thanks for your patience @gotson! We are happy to move forward with adding Spring Session Caffeine to our community modules. It looks like you're already publishing artifacts, which is great. I would suggest adding more details to the documentation about what the module supports and doesn't support, and the configuration options. Finally, I'm wondering about the following statement from the Readme:
I may be misunderstanding this since |
That's great news! 🥳
I am referring to the fact that SpringSessionBackedSessionRegistry requires a
What kind of details do you think would be required? There are some details on how to use it in the README. |
A
I would suggest some more details on what |
Thanks a lot for the precision, this hadn't crossed my mind. |
Thanks @gotson. |
Hi @eleftherias i updated the README by adding features, instead of comparing it to |
Thanks @gotson! |
Hi,
I've made a community extension for spring session, based on the excellent Caffeine cache.
https://github.com/gotson/spring-session-caffeine
The motivation was to be able to use it with Spring Security, support events and session expiry.
It's well suited for applications that run on a single instance (you may not want the overhead of Redis or Hazelcast), and cannot use JDBC sessions due to limitations of the database (Sqlite has a single connection and no support for read-only transactions, which kills the performance).
My implementation is mostly inspired by the Hazelcast implementation. I tried to follow the Spring projects guidelines, but I'm not so familiar with it.
I hope it can help other people out there with similar needs as mine!
The text was updated successfully, but these errors were encountered: