search

Home  >  Q&A  >  body text

linux - php queue, how to design scheduled tasks?

php queue, how to design scheduled tasks?

世界只因有你世界只因有你2705 days ago925

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-06-23 09:13:37

    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

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-06-23 09:13:37

    crontab

    reply
    0
  • 为情所困

    为情所困2017-06-23 09:13:37

    You can write one that always runs in the background

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

    You can control time through $time.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-06-23 09:13:37

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

    reply
    0
  • Cancelreply