For example, you see many rails applications using backgroundrb or
skynet or some custom scheduler to handle such tasks. In most cases,
background rb still needs daemonization, monitoring and unified
logging support.
It seems to me that given the integrated queue, Webroar might already
have, or be able to easily support long running tasks, leveraging the
current process management framework. Is support for such code
already there? If not, I'd be curious to hear from the core team on
if they think this might in fact be plausible.
I think this feature might significantly differentiate Webroar from
the other frameworks if it was supported.
If a simple example might help, here is a long-running background
process that I might like to deploy with my web application (scaling
horizontally as my web tier grows):
--
# pseudo code
background.rb:
scheduler.every.5.minutes do
Feed.lock_if_needs_update('thishostname', :limit => 10)
Feed.find_by_lockedby('thishostname').each do |f|
f.update
f.save_and_unlock
end
end
--
Thanks,
Darren