One solution is to use the 2 server setup described at
http://perl.apache.org/guide/scenario.html#One_Plain_and_One_mod_perl_enabl
and have the lightweight proxy server handle the upload as a regular
CGI process, after the file has uploaded redirect to a mod_perl
process for further processing. You can have a lot of lighweight proxy
processes handling uploads and only a few heavy mod_perl processes to
do the heavy lifting.

Todd Finney - Mon, Nov 15, 1999 at 01:14:43PM -0500
> We're putting together a site that involves processing images uploaded by
> our users.   I'm using Image::Magick to resize the images to a standard
> size, and to create thumbnails.    We will have an upload page, which hits
> a CGI under mod_perl that handles the form data and processes the image.
> 
> I am wondering if this is the best way to handle this.   When a user
> uploads an image and it's being processed, am I occupying an entire child
> process for the duration of the transaction?  If each transaction lasts a
> couple of seconds, it this a Bad Thing?   Is there a more efficient way to
> handle this?
> 
> I saw the Apache::Magick demo in the modperl site, but it doesn't really
> apply to this situation, as I don't need to do dynamic rendering. 
> 
> thanks,
> Todd

-- 
Geoff Crawshaw
CTO
TimeBills.com Inc.

Reply via email to