On Fri, Jan 9, 2009 at 3:36 PM, Joshua Bronson <[email protected]> wrote:

> On Fri, Jan 9, 2009 at 3:24 PM, TJ Ninneman <[email protected]>wrote:
>
>>
>> On Jan 9, 2009, at 1:52 PM, Josh wrote:
>> >
>> > I'm currently playing with Varnish as a caching layer, which has
>> > support for Edge Side Includes. Have you considered a setup like this?
>> > If so, I'd be interested to hear what made memcached + SSI more
>> > appealing. If not, I'd be happy to provide some links I've come across
>> > if you're interested in exploring this further.
>>
>> We looked heavily into Varnish as we run everything on FreeBSD and it
>> looked just darn cool.  I just never really had the time to get it
>> implemented as a reverse proxy.
>>
>> One of our requirements was the ability for the backside application
>> to invalidate cached items.  Is this possible?
>>
>> Another requirement was the ability to redirect backend requests by
>> URL (ie. *.asp to one server and everything else to another).  As I
>> recall, Varnish can do this, right?
>>
>> TJ
>
>
> Both of these should be possible. Have a look at
> http://bart.motd.be/experimenting-with-varnish and
> http://bart.motd.be/using-varnish-http-accelerator-experiences-so-far. See
> if the configurations posted there contain enough clues...
>

Actually, I'm not sure if his configuration covers dispatching to different
backends by url. Something like this ought to work:

backend asp_server {
  .host = "127.0.0.1";
  .port = "XYZ";
}

backend pylons_server {
  .host = "127.0.0.1";
  .port = "ZYX";
}

sub vcl_recv {
  if (req.url ~ "\.asp$") {
    set req.backend = asp_server;
  } else {
    set req.backend = pylons_server;
  }
  // ...
}


I also found http://varnish.projects.linpro.no/wiki/VCLExampleLongerCachingto
be an informative read.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to