Read Taskqueue (PHP asynchronous operation)

Source: Internet
Author: User
Read Taskqueue have to think (PHP asynchronous operation)
When I see the word taskqueue, I think this should be a very interesting word, because I often do in the management of a task, can be translated into the Chinese "goal", "task" and so on, but why it attracted me?? Just because I passed taskqueue Google, I get what I need from these results. New thinking is through this unintentional thinking.

Taskqueue can be interpreted as "task handling" if you follow the lines in the computer. I will certainly think of the strong language java,c,c++ powerful task processes and other management, but really for the web development language PHP, really a bit sad, PHP can not be achieved through its own mechanism to achieve these, but he still around us constantly appear, Then he must also have a supportive way to help us achieve this. That can use "pcntl" to help us achieve, or most directly, can also be done through Apache, these are the usual way, but I can now introduce a few other ways to achieve oh, we have to listen to:

1. First we still provide the corresponding service through the Web server, but when we do the corresponding operation, we can prepare a task table to store some of the tasks we can do later, When this task we need to use a shell (Linux) way in the system to continue to manipulate the data in this table, because they have to constantly update these operations. It is recommended that you use the command line method to execute. Get used to it. Professional.

Hopefully this kind of sharing will help you with your asynchronous operation for PHP!

This only provides a solution, the specific code also invites you to analyze and write according to your own situation!

1/F Poson 2010-11-30

Not a task queue?

2/F MATYHTF 2010-12-16

Http://www.swoole.com/News/55.html

3/F MATYHTF 2010-12-16

You can take a look at this. is asynchronous IO, put event processing on the back end.
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.