Per,<div><br>Confused, I thought ban and purge are the same thing now in varnish 3?</div><div><br></div><div><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px">Varnish 3 uses the term</span><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px"> </span><cite style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px">ban</cite><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px"> </span><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px">and</span><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px"> </span><cite style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px">banning</cite><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px"> </span><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px">for what was known as</span><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px"> </span><cite style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px">purge</cite><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px"> </span><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px">and</span><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px"> </span><cite style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px">purging</cite><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px"> </span><span style="line-height:20px;text-align:justify;background-color:rgb(255,255,255);font-family:sans-serif;font-size:16px">in Varnish 2. They are the same.</span><ul class="simple" style="font-family:sans-serif;font-size:16px;background-color:rgb(255,255,255)">
<li style="text-align:justify;line-height:20px">Varnish 3 has a new function called <tt class="docutils literal" style="background-color:rgb(236,240,243);padding:0px 1px;font-size:0.95em"><span class="pre">purge;</span></tt> that did not exist in VCL in Varnish 2.</li>
<li style="text-align:justify;line-height:20px"><tt class="docutils literal" style="background-color:rgb(236,240,243);padding:0px 1px;font-size:0.95em"><span class="pre">purge;</span></tt> is a much improved way of doing what was in Varnish 2 done using <tt class="docutils literal" style="background-color:rgb(236,240,243);padding:0px 1px;font-size:0.95em"><span class="pre">set</span> <span class="pre">obj.ttl</span> <span class="pre">=</span> <span class="pre">0s;</span></tt>.</li>
</ul><div style="text-align:justify"><font face="sans-serif" size="3"><span style="line-height:20px"><br></span></font></div><div style="text-align:justify"><font face="sans-serif" size="3"><span style="line-height:20px">So when you said limiting ban's to 10-30 per second, you were referring to a regex based way of removing an item from cache?</span></font></div>
<div style="text-align:justify"><font face="sans-serif" size="3"><span style="line-height:20px"><br></span></font></div><div style="text-align:justify"><font face="sans-serif" size="3"><span style="line-height:20px">And a purge is a specific url?</span></font></div>
<div style="text-align:justify"><font face="sans-serif" size="3"><span style="line-height:20px"><br></span></font></div><br><div class="gmail_quote">On Wed, Oct 10, 2012 at 8:59 AM, Per Buer <span dir="ltr"><<a href="mailto:perbu@varnish-software.com" target="_blank">perbu@varnish-software.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br><div class="gmail_quote"><div class="im">On Wed, Oct 3, 2012 at 9:31 PM, S Ahmed <span dir="ltr"><<a href="mailto:sahmed1020@gmail.com" target="_blank">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">
I was reading: <a href="https://www.varnish-software.com/static/book/Cache_invalidation.html" target="_blank">https://www.varnish-software.com/static/book/Cache_invalidation.html</a><div><br></div><div>My main question is, what sort of # of ban requests can one realistically send to varnish to invalid caches? (individual items, not ranges etc.)</div>
</blockquote><div><br></div></div><div>I would limit bans to maybe 10-30 per second, no more. Make sure they are lurker-friendly.</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Say a site like tumblr is using varnish, which has thousands and thousands of blogs, and so many blog entries are being updated via comments etc. How realistic would sending 1K ban's be to varnish?</div></blockquote>
<div><br></div></div><div>Sending 1k purges to Varnish would be no problem at all. Bans - I'm not sure that is a good idea.</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Maybe I have misunderstood this, but I'm guessing their are ruby/java client libraries that when content gets updated in a web application, I could then send a request using the ruby/java client library to ban a specific item from cache right?</div>
<div><br></div><div>If there are client libraries, where can they be found? I'm looking for both ruby and java.</div></blockquote><div><br></div></div><div>It might make sense to implement it yourself. It is dead simple and you don't need the complexities of a generic library.</div>
<span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><img><div>Per Buer<br>Phone: <a href="tel:%2B47%2021%2098%2092%2061" value="+4721989261" target="_blank">+47 21 98 92 61</a> / Mobile: <a href="tel:%2B47%20958%2039%20117" value="+4795839117" target="_blank">+47 958 39 117</a> / 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>
</font></span></blockquote></div><br></div>