redisredis-streams

Can we acknowledge a range of entries (or entries older than a certain id) in Redis streams?


Is it possible to acknowledge multiple entries in a redis stream based on a range of IDs? I am specifically interested in acknowledging everything before a certain ID, instead of acknowledging one by one.

Or alternatively, is it possible to only read entries with IDs bigger than the last acknowledged ID?


Solution

  • There is no way to XACK a range of IDs built in command. Technically it can be done using Lua script.

    As for the second part of your question see the XREADGROUP docs.

    The special > ID, which means that the consumer want to receive only messages that were never delivered to any other consumer. It just means, give me new messages.