Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Complete part of a cgi script before the rest

by frieduck (Hermit)
on Apr 15, 2010 at 20:28 UTC ( #834970=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Complete part of a cgi script before the rest
in thread Complete part of a cgi script before the rest

Just a thought. You may want to consider having the CGI process just queue a request to a daemon to prevent your server/database being overloaded by multiple simultaneous requests. You would simply do an insert into a request queue table with any necessary parameters, and have the daemon periodically check for new requests.


Comment on Re^3: Complete part of a cgi script before the rest
Re^4: Complete part of a cgi script before the rest
by afoken (Parson) on Apr 16, 2010 at 20:00 UTC

    Right. And if you use a cron job to run a simple script as often as required, you don't even have to write a daemon.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://834970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-07-12 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls