Hi,
I have found that I often have to implement some sort of a scheduler in the applications I develop. The applications can range from simple maintenance tasks to fairly complex.
So far my approach has been to set up cron jobs that essentially do batch processing of queued commands. For example, I have cron invoking a script (I am working in RubyOnRails so this is a runner script) every 5 minutes, which checks if there are any items that need to be processed, then delegates the tasks to appropriate handlers.
This works, but for some reason doesn't feel like the best approach. Can you recommend something, or have any comments on this?
I working in Ruby on Rails, but there is no reason this discussion should be limited only to RoR.
Thanks,