Read TaskQueue (PHP asynchronous operation)

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.