linux - php queue, how to design scheduled tasks?
世界只因有你
世界只因有你 2017-06-23 09:11:37
0
4
855

php queue, how to design scheduled tasks?

世界只因有你
世界只因有你

reply all (4)
洪涛

1. Use the open source MQ message queue software (lightweight recommended)
2. Use MySQL+crontab to implement it yourself
3. The redis list can also be implemented

    淡淡烟草味

    crontab

      为情所困

      You can write one that always runs in the background

      while(true){ // 业务处理代码 sleep($time) }

      You can control time through $time.

        伊谢尔伦

        Please describe the problem clearly. What application scenarios do you need to use resident processes?

          Latest Downloads
          More>
          Web Effects
          Website Source Code
          Website Materials
          Front End Template
          About us Disclaimer Sitemap
          php.cn:Public welfare online PHP training,Help PHP learners grow quickly!