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:
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.
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