spring-projects / spring-data-redis

Provides support to increase developer productivity in Java when using Redis, a key-value store. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-redis/
Apache License 2.0
1.77k stars 1.17k forks source link

Support shard pub/sub #3019

Open heowc opened 1 month ago

heowc commented 1 month ago

As far as I know, redis 7.0 provides a slightly improved pub/sub.

Accordingly, lettuce related commands have been implemented. Are there any plans to abstract this? 🤔

mp911de commented 1 month ago

We might, but the underlying issue is to track changes in Redis Cluster topologies and adopt the message listener accordingly. Sending pub/sub messages to shards isn't complex.

asafpamzn commented 1 week ago

@mp911de , Valkey-GLIDE handles the Redis cluster topology updates and resubscribe on such events. We can integrate it for support of sharded pub/sub.