DavidBM / rsmq-async-rs

RSMQ port to async rust. RSMQ is a simple redis queue system that works in any redis v2.6+
MIT License
43 stars 8 forks source link

blocking receive #24

Open GopherJ opened 1 month ago

GopherJ commented 1 month ago

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

GopherJ commented 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

DavidBM commented 1 month ago

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?