vice icon indicating copy to clipboard operation
vice copied to clipboard

Cannot control message pulling from the queue

Open forepick opened this issue 5 years ago • 0 comments

I have this use case:

  • A Redis list is initialized with 3 messages '1', '2' and '3'.
  • A main function iterates forever on a redis receiver.
  • After each received message the goroutine sleeps for 30 seconds.

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!

forepick avatar Apr 07 '19 18:04 forepick