On Sep 3, 11:03 am, jhaagmans <[email protected]> wrote:
> On 2 sep, 23:52, Frederick Cheung <[email protected]> wrote:
>
>
> Thanks Frederick,
>
> The thing is, I can't choose the tools I need to work with. I'm not
> worrying about server response time from the servers that I will
> query, that's just a given and I cannot do anything about it. I also
> cannot worry about e-mail delivery time -after it left my machine-
> because that also is just a given. The e-mails will be sent to servers
> physically very close to the server sending out the e-mails. Just
> believe me, any millisecond counts. That's also the reason I will be
> creating this application: I will need to be able to fine-tune it
> later on so that it fits perfectly.
Just seems highly likely that any time you save will actually be lost
in the noise.
>
> Is Rails, or at least Ruby, able to do server monitoring on pre-set
> intervals? Forget about the speed issue for a moment, but would it be
> able to query a server, wait for its response (we're talking about
> normal HTTP-requests), store this response and go on?
Don't see why not. As you suspect this bit wouldn't actually use rails
at all (maybe activerecord if you want to store the results in a
database)
> There will be
> three applications running on three servers. One is just querying -a
> lot- of servers and it doesn't matter whether it has to wait for the
> previous request to finish or not (so I guess multi-threading will not
> be needed, right?). It only needs to store the last response and the
> time of that last response. The second is querying only a few servers
> and there are limitations to how often it can query a specific server,
> but it should do a request every second (meaning that when a request
> takes over 1 second, it will need to start a new thread). "Normal"
> Ruby will probably not be able to do this, right? The last one will do
> many requests per second to one or two servers, also on a pre-set
> interval, but it also needs to send out an e-mail when the response
> differs from what is expected. I guess, especially for this last
> application, Ruby won't be able to help me. Am I right?
>
stuff like eventmachine does all the gnarly IO bits in C so can be
pretty effective for this sort of stuff if you're worried about the
performance side
Fred
> I'm going to buy some C books, at least for app 2 and 3, I guess ;)
>
> Thank you both!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---