redis/redis-io

XREADGROUP reading backlog and new message Ruby code logic issue

giridharkannan opened this issue · 0 comments

Hi,

In Redis streams documentation, for the XREADGROUP command, we have Ruby sample code describing how to read backlog and then new messages.
The count has been set to 10. The code will not read full backlog messages if the backlog size is > 10.
Also, it would be good if XREADGROUP supports an argument similar to > which would first give backlog messages and then the actual messages. This way, users can avoid worrying about processing backlog separately and actual messages separately and avoid making mistakes.