PHP How do I implement queue processing in php

后端 未结 6 610
别跟我提以往
别跟我提以往 2020-12-13 07:08

I want the data sent by my clients (via post) to be placed in a queue and a php script on my server first checks if the queue is empty. If the queue is not empty, then the s

6条回答
  •  鱼传尺愫
    2020-12-13 07:47

    Here is another great tutorial for this:

    http://squirrelshaterobots.com/programming/php/building-a-queue-server-in-php-part-1-understanding-the-project/

    The other solution is using Gearman which they seem to have incorporated into PHP (it wasn't the last time I played with it): http://php.net/manual/en/book.gearman.php

提交回复
热议问题