What are the scripts that mysql-php run in Linux background?

Source: Internet
Author: User
User Integration System,
After the user obtains the integral through the task, first writes Redis as the cache

Background run a PHP script, resident backstage, every 10 minutes to write MySQL

The question is, what is this php script about?

What do you use Php-resque to say online???? What the heck?

What's the way to say it all, exactly?

Reply content:

User Integration System,
After the user obtains the integral through the task, first writes Redis as the cache

Background run a PHP script, resident backstage, every 10 minutes to write MySQL

The question is, what is this php script about?

What do you use Php-resque to say online???? What the heck?

What's the way to say it all, exactly?

Php-resque is a relatively mature background task system, the main problem if you do not want to go to his own words to read his documents, and then according to your needs to achieve the good.

Here are some of the more easily understood introductory articles, the main topic can be consulted:

  • Php-resque-A simple introduction

  • Using PHP to implement daemon tasks background running and multithreading (Php-resque instructions)

If the owner wants to build the wheel himself is very simple, I say the main process:

The first thing you need to know is that the Linux system is a very powerful tool for scheduled task execution.

  • Crontab Scheduled Tasks

Then all that's left is to write a PHP script and let the tool execute.

The contents of the PHP script are logically clear, getting data from Redis, computing and then writing to Mysql, which is something that junior engineers can write out, no need to say in detail.

Cron

*/10 * * * * php /path/to/script.php

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.