-
Hello, I'm currently using Redis for pub/sub messaging in a project where system memory is often near its limit. I've noticed that while Redis handles key-value operations and evictions smoothly under memory pressure, I'm concerned about how it manages memory for pub/sub messages under similar conditions. Could you clarify how Redis handles memory allocation for transient pub/sub messages, especially when the system is at its memory capacity? Specifically, I'm interested in understanding:
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Redis will send a pub message to every connection.
since pubscribe/subscribe are non-writable, they aren't limited by maxmemory.
what version are you using? if > 7.0, you can use client eviction to evict the connection that read the traffic too slow. |
Beta Was this translation helpful? Give feedback.
Redis will send a pub message to every connection.
since pubscribe/subscribe are non-writable, they aren't limited by maxmemory.
LRU is for keyspace, but pub/sub doesn't generate any dataset, so pub/sub is not affected by eviction.
what version are you using? if > 7.0, you can use client …