Suppose I have stream mystream, and a group mygroup, how do I get the length of unconsumed messages?
Suppose I have stream mystream, and a group mygroup, how do I get the length of unconsumed messages?
No, there is no way to do that afaik.
It is possible to get the last message ID delivered in a group and in a stream with the XINFO GROUPS and XINFO STREAM commands, respectively.
However, there is no command that returns the length of a stream subrange. Such command, was it to exist, would probably require linear time complexity and in that case, it will probably not be implemented.