Open GopherJ opened 1 month ago
a possible solution is to use keyspace events: https://medium.com/nerd-for-tech/redis-getting-notified-when-a-key-is-expired-or-changed-ca3e1f1c7f0a
it's not good because it relies on redis configuration
There is a realtime subscription option. You might need to listed to the events on your own and then execute the recv. Would that work for you?
currently receive tries to fetch every x seconds which is not ideal