Perlbal - Caching on the filesystem

This is Interesting: Free IT Magazines  
Home > Archive > Perlbal > March 2007 > Caching on the filesystem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Caching on the filesystem
David Snopek

2007-03-06, 1:12 pm

Hello!

Please forgive me for being so ignorant of how Perlbal works, but I've
just started playing with it. I am looking for any pointers on where
to look or how to start ...

We have a very complicated image generation system. I want to use a
pool of servers to generate the images. I was able to get this going
easily with a service set as "role = reverse_proxy". However, I want
to cache the result on the server running Perlbal so that it can
simply be sent if it exists. We already have a mechanism that knows
when the cached image is invalid and can call to the server and
request that the cached image be deleted.

Is possible, with some series of hooks, to combine the roles
"reverse_proxy" and "web_server" to get this done? Here's what I'm
thinking: The web_server service will check if the image exists and
simply serve it if it exists. If it doesn't, it "reproxys" to the
reverse_proxy. The reverse_proxy will write the image to disk as it
serves it to the client. How would I accomplish such a thing? Or is
there a better way to do it?

Thanks in advance!
David Snopek.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com