On Sep 2, 7:13 pm, jhaagmans <[email protected]> wrote:

>
> And how can I make this an ongoing process? I don't want a cronjob-
> powered script, for example. Later on, when there's a lot to query, we
> might move from sending a query once every five seconds to a hundred
> times per second. How to do this? It could also be also time-specific.
> Some database entries only need to be monitored from 8AM to 5PM for
> example. But not all.
>
> I hope you can help me with this, as I'm not sure where to start. If
> you tell me to go and learn another programming language that's
> faster, I will. Just be honest.
>

To be honest, if you're sending emails, querying remote servers etc.
then you shouldn't be worrying about milliseconds - either of those
two actions could take far longer than that. The smtp server you talk
too could easily sit on your message for seconds or even minutes -
email isn't an instant delivery protocol. Your server-monitory thing
is going to be some sort of background process, you may find a single
instance of that gets more done if you're using something like jruby
that has better threading than normal ruby. Stuff like eventmachine is
pretty cool for having a single process multiplex a lot of IO.

Fred
> Thank you very much.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to