目前想的是:
这样做是否可行?需要注意哪些?
PHPz2017-04-22 09:00:59
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.