After reading TaskQueue, I thought (PHP asynchronous operation) that when I saw TaskQueue, I thought it should be a very interesting word, because I often manage a Task that can be translated into Chinese targets and tasks, why would it attract me ?? It is because I passed TaskQueuegoogle, and then I got the results I needed from these results. The new idea is to think about TaskQueue (PHP asynchronous operation)
When I see the word TaskQueue, I think this should be a very interesting word, because I often manage a Task on my own, it can be translated into Chinese characters such as "goal" and "task", but why will it attract me ?? It is because I Googled through TaskQueue that I will get the results I need from these results. New thinking is through this unintentional thinking.
TaskQueue can be interpreted as "task processing" or similar according to the computer's line of practice. I am sure everyone will think of powerful languages such as java, c, c ++, and powerful task processes. but it is really sad for php, PHP cannot achieve this through its own mechanisms, but he is still around us, and he must also be able to help us achieve this. Then we can use "PCNTL" to assist us in our implementation, or the most direct, or through Apache. these are common methods, but now I can introduce several other methods to achieve it. you have to listen:
1. first, we provide the corresponding services through the web server. but when we perform the corresponding operations, we can prepare another task table to store some tasks we can perform in the future, when this task requires a shell (Linux) method to constantly operate the data in this table in the system, because they have to constantly update these operations. We recommend that you run the command line. Used to it. Professional.
I hope this sharing will be helpful for your asynchronous PHP operations!
This document only provides a solution. you can analyze and write the code based on your own situation!
1 floor poson
Isn't it a task queue?
Matyhtf 2010-12-16 on the second floor
Http://www.swoole.com/News/55.html
Matyhtf 2010-12-16 on the third floor
Let's take a look at this. It's just asynchronous IO. put Event Processing at the backend.
Http://www.swoole.com/News/55.html