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

Support for NATS JetStream Key/Value store as an alternative for Redis

Open n9 opened this issue 1 year ago • 2 comments

Expected Behavior

To have the option to use NATS JetStream Key/Value store instead of Redis as a distributed storage for sessions.

Current Behavior

NATS JetStream Key/Value store is not supported.

Context

  • Docs: https://docs.nats.io/nats-concepts/jetstream/key-value-store
  • Java client: https://github.com/nats-io/nats.java
  • TTL per key is planned for the next minor version (v2.11): https://github.com/nats-io/nats-server/issues/3251

n9 avatar May 01 '24 08:05 n9

Hi, @n9. Thanks for the suggestion.

I think that the best alternative would be to create an external project that adds the support using Spring Session. Then we can assess its fit into the framework. What do you think?

marcusdacoregio avatar May 13 '24 13:05 marcusdacoregio

@marcusdacoregio Ok.

n9 avatar May 13 '24 13:05 n9