[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Apache::Upload / tempname vs link vs slurping fh


Hi all,

I'm planning on changing an existing mod_perl application to
distribute images across the cluster as they are uploaded rather than
using rsync afterwoods.

Currently the code uses the "slurp fh, print to another file" recipe
which seems incredibly inefficient.

The "correct" way seems to be to use link(), but I can't be sure it
will be linked from the same filesystem and it's another unwanted step
before I copy to remote servers.

Would it be poor form to copy the spooled file at tempname directly to
the rest of the cluster   using something like Net::CascadeCopy or
MogileFS::Client? How much is the Apache::Request API likely to change
in a way that break tempname given that 2.x is now mature and stable?

A.

-- 
http://www.aarontrevena.co.uk
LAMP System Integration, Development and Hosting


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.