Metadata in zope / binary data on FS, was Re: [ZODB-Dev] __del__ with Persistent objects

Toby Dickenson tdickenson at geminidataloggers.com
Fri Jul 18 19:01:57 EDT 2003


On Friday 18 July 2003 17:30, Stuart Bishop wrote:

> Putting a reverse proxy in front of Zope may speed things
> up dramatically (Zope may be able to punt the file to squid quickly,
> rather than slowly feed the file over the Internet to the client -
> unsure).

I'm familiar with squid, and you would need a patch to get squid to buffer 
more than its default 128k. (plus alot of ram on the squid box). I can maybe 
dig out the patch if you cant find it in the squid list archives.

Alternatively, squid may be able to help in another way. You could make your 
files cacheable with "Cache-Control:public,s-maxage=0,proxy-revalidate".... 
That allows shared caches to store the file, but *always* check authorization 
with the Zope origin server. On the second and subsequent request, the file 
body will be served by squid.

-- 
Toby Dickenson - http://www.geminidataloggers.com/people/tdickenson

Want a job like mine?  http://www.geminidataloggers.com/jobs for Software
Engineering jobs at Gemini Data Loggers in Chichester, West Sussex, England




More information about the ZODB-Dev mailing list