cache.pm and static contents serving based on filetype
jbj at forbidden.co.uk
Tue Jan 23 18:43:44 UTC 2007
> However, would it be more efficient to use Perlbal to serve static
> contents(photos and etc) maybe from MogileFS, while passing dynamic
> contents to the backend Apaches? This would require a filtering based
> on FileTypes requested. Also, if the user wanted to upload new photos,
> would it be a problem since the request is dynamic (say PHP) and it
> would be passed to the backend servers? Thanks.
Note that you'll probably want design your server infrastructure to make
this easier to manage. Eg, put all images to be served by Mogile on
media.domain.com and your normal 'apache' data through domain.com.
Alternatively, I wrote a plugin a while back to support serving files
differently depending on path, so you can serve all files through
/media/ with Mogile, and everything else with Apache.
If you want all image files to be served by perlbal without putting them
in a sensible place; there madness lies...
More information about the perlbal