I'm currently working on a project where I have a lot of tasks that can be parallelized. I'm using redis to store data, and I'd also like to use to handle my jobs queue to.
At first, I've used the PubSub pattern described in Redis doc. The issue here is that it sends every message to every worker where I'd like one message per worker. I have, for the moment, circumvented the problem by adding status (in a DB) for each of the messages but that's clearly not optimal.
Is there a way to easily replace this pubsub pattern with a suitable pattern ?