I am newble in Redis Stream I want a lightweight MQ and I do not like kafka I tried Redis Streams in my project. I read the whole doc about stream, I have a question, if I consume a message I need xack it, that way can remove it from PEL, but It is done? if I do not want use it any more,I need call xdel by myself? or I set a length for stream? It will remove automatic?

Comment From: itamarhaber

Hello @freew01f

The message will stay in the stream until it is XDELeleted or trimmed (via XTRIM or XADD ... MAXLEN). XACKing a message only removes it from the PEL of the relevant consumer group member. There is no automatic removal of messages, but you can implement it in your application code if needed.

Keep in mind that this issue tracker should be used for reporting bugs or proposing improvements to the Redis server - please close this issue. Questions should be directed to the community:

Comment From: freew01f

Hello @freew01f

The message will stay in the stream until it is XDELeleted or trimmed (via XTRIM or XADD ... MAXLEN). XACKing a message only removes it from the PEL of the relevant consumer group member. There is no automatic removal of messages, but you can implement it in your application code if needed.

Keep in mind that this issue tracker should be used for reporting bugs or proposing improvements to the Redis server - please close this issue. Questions should be directed to the community:

Thank you very much~

Comment From: sundb

Add a new XACKDEL command in https://github.com/redis/redis/pull/14130 to delete entries simultaneously with ACK.