Invited by the system.
I haven't tried the questioner's solution, but in a flash I immediately thought of a tool that also uses Redis for caching: logstash, so the questioner's solution should be completely feasible.
There is no need to add additional queues. Redis naturally provides lpush和lpop commands to use the list as a queue.
Because the writing performance of Redis is very high, the subject may want to pay attention to the performance of the processing queue to prevent the memory from bursting.
Invited by the system.
I haven't tried the questioner's solution, but in a flash I immediately thought of a tool that also uses Redis for caching: logstash, so the questioner's solution should be completely feasible.
There is no need to add additional queues. Redis naturally provides
lpush
和lpop
commands to use the list as a queue.Because the writing performance of Redis is very high, the subject may want to pay attention to the performance of the processing queue to prevent the memory from bursting.