Hi,<br><br><div class="gmail_quote">On Wed, Feb 29, 2012 at 11:27 PM, S Ahmed <span dir="ltr"><<a href="mailto:sahmed1020@gmail.com">sahmed1020@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How would you go about invalidating a cache with ruby?</blockquote><div><br></div><div>You either use HTTP PURGE against Varnish or issue a ban. See the tutorial for details.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Also, from what I understand varnish doesn't support clustering. What if you grow past a single server, do you somehow use a hashing algorithm to choose which server will have the cached page? (if yes, then at what layer will this hashing be done?)</div>
</blockquote><div><br></div><div>You can either use Varnish as a load balancer (it is rather good at load balancing) use the hash director or any other load balancer that supports "URL target" hashing.</div><div>
<br></div></div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>Per Buer, CEO<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br><i>Varnish makes websites fly!</i><div>
<a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>
<br></div></div><br>