matryer / vice

Go channels at horizontal scale (powered by message queues)
https://medium.com/@matryer/introducing-vice-go-channels-across-many-machines-bcac1147d7e2
Apache License 2.0
1.54k stars 79 forks source link

Cannot control message pulling from the queue #57

Open forepick opened 5 years ago

forepick commented 5 years ago

I have this use case:

I would expect that after pulling a single message ('1') - two message will remain on the redis list, but instead - only the last message remains while the second message was already pulled by the redis.makeSubscriber function, and waits in the internal channel instead of in the redis list itself.

This functionality prevents from other machines pulling the message while the first is sleeping.

Is there any way to fix it?

Thanks!