zlacker

[parent] [thread] 1 comments
1. zamuba+(OP)[view] [source] 2022-09-06 05:31:20
AFAIK, streams are treated as any Redis data type and stored on disk making them durable. Redis even allows you to use an append only file and the database snapshot for persistence/durability with differing levels of requirements (eg. every operation, every n seconds, never). Though I'm not sure if the streams are handled the same in terms of high availability though...

Also while plain XREAD doesn't give you pending tasks, using consumer groups and look at XREADGROUP (specifically using ID = 0 to get all pending tasks) should get you all pending tasks before continuing onto unseen tasks. There is also XCLAIM and XAUTOCLAIM which you can filter the pending tasks by how long they have gone unacknowledged for and have another worker claim the tasks.

replies(1): >>welder+i2
2. welder+i2[view] [source] 2022-09-06 05:51:58
>>zamuba+(OP)
Oh sorry, somehow I thought we were talking about pubsub.
[go to top]