zlacker

[parent] [thread] 2 comments
1. captai+(OP)[view] [source] 2022-09-06 03:58:54
i made one as well called SAQ!

https://github.com/tobymao/saq

Looks like you use BLPOP, but there could be race conditions or lost jobs if your workers crash, check out BLMOVE and RPOPLPUSH.

replies(1): >>welder+H5
2. welder+H5[view] [source] 2022-09-06 04:55:20
>>captai+(OP)
> i made one as well called SAQ! https://github.com/tobymao/saq

Awesome! I'll check out your implementation.

> Looks like you use BLPOP, but there could be race conditions or lost jobs if your workers crash, check out BLMOVE and RPOPLPUSH.

I prefer ack-first (blpop) and designing the tasks to expect some amount of errors.

replies(1): >>antman+ah
◧◩
3. antman+ah[view] [source] [discussion] 2022-09-06 06:39:15
>>welder+H5
I guess this should be on the FAQ
[go to top]