Resource usage by keyspace notifications

The docs mention it’s disabled by default for performance reasons. So I’m wondering if anyone has ran some tests or are there any benchmarks to look at? Couldn’t find any.

Also what if keyspace notifications are enabled but there are no keyspace channels subscribed to? I assume redis will skip doing any work for keyspaces with no active subscribers?

Hello @Babakb

some tests or are there any benchmarks

I’m not aware of any, but you can use redis-benchmark/memtier to simulate and measure.

Also what if keyspace notifications are enabled but there are no keyspace channels subscribed to?

Events would still be generated (per key/command) but won’t be sent anywhere. Performance may be impacted by the mere act of generating events, even if they aren’t sent.