Mention that keyspace events are not replicated across Redis Cluster shards.

Applications can suffer from missing important Keyspace events as described at https://github.com/spring-projects/spring-session/issues/2230.

This adds a caution to the docs to help others avoid running into this problem.

Closes #2881
This commit is contained in:
Stephen Kinser
2024-03-25 16:32:20 -06:00
committed by Mark Paluch
parent 9cad17171e
commit 49e5afc80d

View File

@@ -6,6 +6,9 @@ See the https://redis.io/topics/cluster-tutorial[Cluster Tutorial] for more info
NOTE: When using xref:repositories.adoc[Redis Repositories] with Redis Cluster, make yourself familiar with how to xref:redis/redis-repositories/cluster.adoc[run Redis Repositories on a Cluster].
CAUTION: Relying on keyspace events when using Redis Cluster is discouraged due to https://github.com/spring-projects/spring-data-redis/issues/1111[only being subscribed to events from one random redis node in the cluster].
Using redis without multiple shards avoids this problem.
[[cluster.working.with.cluster]]
== Working With Redis Cluster Connection