PHP How do I implement queue processing in php

后端 未结 6 620
别跟我提以往
别跟我提以往 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:36

    You could use something like Zero MQ

    See Example by Rasmus Lerdorf.

    You could also consider using Gearman to distribute the load.

提交回复
热议问题