rsmq-async-rs icon indicating copy to clipboard operation
rsmq-async-rs copied to clipboard

blocking receive

Open 0x8f701 opened this issue 1 year ago • 2 comments

currently receive tries to fetch every x seconds which is not ideal

0x8f701 avatar May 24 '24 04:05 0x8f701

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

0x8f701 avatar May 24 '24 04:05 0x8f701

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?

DavidBM avatar May 30 '24 12:05 DavidBM