On Sep 26, 5:13 pm, Rich Sturim <[EMAIL PROTECTED]>
wrote:
> I need help understanding the pros and cons of these 2 facilities.
>
> Am I correct in assuming that this daemon by definitive runs in the
> rails environment, whereas a cron will have to load up a rail
> environment each time and thus consumer for more resources than the
> daemons gem?
The difference is that a daemon is a long running process (ie
initialisation happens once), whereas a cronjob is something that is
launched repeatedly.
So yes, a cronjob spends more time loading rails/your app over and
over again, but a daemon will set on however much memory it needs all
the time, whereas a cronjob will return those resources when it has
finished. To an extent the trade off depends how often you want to
perform your task.
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---