Work planning - is crontab the best solution?

I am developing a web application that is highly dependent on work planning. Works will be extremely short, for example, one HTTP request. However, there will be many of them. More than a few thousand jobs can be planned every day, but not all at once. My first inclination was to use crontab to schedule these tasks, but I'm not sure if this is the best solution.

I see that crontab is mainly used for scheduling labor-intensive administrative tasks, but not for very short tasks. Is crontab suitable for this? Can he handle so many jobs? Should I implement my own solution? Are there any services that can provide the best solution and performance?

Many thanks!

+3
source share
4 answers

Cron will run anything - long or short. However, if you intend to run thousands of jobs per day, then you may run into the problem that the maximum cron frequency resolves once per minute. If you need a higher speed, you will have to look for other solutions.

A possible alternative to Cron is Fat Controller, which works like cron, as it basically runs other programs, but has some advantages. The fat controller can perform several actions:

  • Demonstrate something - give it any PHP, Python, any script, even a Java application, and it can be demonized into the background process.

  • Mulitask anything - script/ . , , , , (.. , ), , script .

  • - - script , . , x ( ). , x script , cron x script, , script, , .

- , - , , !

-: http://www.4pmp.com/fatcontroller/

, , , .

+3

. , cron , .

0

Cron ; , , - . - , .

, OS X, launchd, cron. (cron , ).

0

CloudQuartz (www.thecloudblocks.com), API , .

We made it so that we could schedule tasks on a server cluster, which was not possible using the CRON scheduler or Windows.

0
source

All Articles