Re: Does sleep increase server load?



On Thu, 19 Jun 2008 13:48:14 -0700 (PDT) Jason Carlton <jwcarlton@xxxxxxxxx> wrote:

JC> Ahh, good points, from both of you. I do prefer to create my own
JC> processes, mainly for the fun of it, so I might set up a catcha-type
JC> process, instead.

Ah, I hate those with a passion.

JC> I dread that, though, because some of my site visitors are (please
JC> forgive me) about as dumb as a box of hammers! LOL For instance, I
JC> have a significant portion that don't bother to enter the part of
JC> their email address after the @; they just ASSUME that I would know
JC> who their provider is!

I don't know the purpose of your setup, but maybe you will have to use
mod_perl to process these forms quickly. It's very efficient with
repeated requests; compared to regular Perl CGI I've experienced a 2-10x
speed improvement. If you can stuff incoming data in a file and then
process it offline as a batch, your form handler just needs to check the
fields so it will be even faster. Finally, you can use Javascript to
validate form fields before they hit the form handler (there are many
such libraries, some decent), which will not eliminate bad data but will
make it less frequent and thus your handler will run less frequently.

JC> People have taught me a whole new meaning to "keep it at a 3rd grade
JC> level" :-)

Yes, unfortunately reality is that most people don't have time or
interest in instructions, they just want to get through the form and go
home to watch TV...

Ted
.