Skip to content

Commit 49e5afc

Browse files
kinsershmp911de
authored andcommitted
Mention that keyspace events are not replicated across Redis Cluster shards.
Applications can suffer from missing important Keyspace events as described at spring-projects/spring-session#2230. This adds a caution to the docs to help others avoid running into this problem. Closes #2881
1 parent 9cad171 commit 49e5afc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/main/antora/modules/ROOT/pages/redis/cluster.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ See the https://redis.io/topics/cluster-tutorial[Cluster Tutorial] for more info
66

77
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].
88

9+
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].
10+
Using redis without multiple shards avoids this problem.
11+
912
[[cluster.working.with.cluster]]
1013
== Working With Redis Cluster Connection
1114

0 commit comments

Comments
 (0)