PHP How do I implement queue processing in php

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

    Problem with cronjob approach is, cronjob could at the most set to 1 minute interval, so there is a delay of 1 minute in the job execution, if that's acceptable then that's fine otherwise should use queues with polling script.

提交回复
热议问题