<div>Hello Guillaume,</div><div>   Thanks very much for your prompt response, I really appreciate your help.  Just a follow-up please:</div><div> </div><div><div>The great thing that I like with Nginx is that it can be used with Redis as the cache storage backend.  This provides three critical/excellent features:</div><div> </div><div>1) A single storage backend/pool that can be used/shared by all running Nginx instances.</div><div> </div><div>2) Redis Cluster+Sentinel, which provide a storage backend with auto sharding + replication, for scalability (both storage capacity and read+write throughput) and high availability</div><div> </div><div>3) In-memory + disk-based storage, so that I can have persistent back-ups of in-memory cache on disk and use that persistent on-disk data to restart in case of failure.</div><div> </div><div>Can Varnish do the same, either with Redis or with any other cache storage backend?  I tried to read a bit about the Malloc and File backends, but it is still not clear to me if the features I mentioned above are available, especially after seeing some of the answers on StackExchange.  If these features are not yet currently available, are they planned for future releases of Varnish?</div><div> </div><div>Thanks very much again for your guidance, much appreciated.</div><div> </div><div>Best Regards,</div><div>Sal</div></div><div> </div><div>27.07.2021, 18:42, "Guillaume Quintard" <guillaume@varnish-software.com>:</div><blockquote><div>Hi,<div> </div><div>That's a very broad question, and so I'll keep the answer pretty high-level.</div><div> </div><div>All in all, Varnish has a lot fewer internal rules than nginx and really only cares about requests at an HTTP level. This means "dynamic" content doesn't matter to Varnish, it's just requests/objects with specific headers, querystrings, etc. As a result, I feel that Varnish is way better equipped to functionally handle any kind of traffic.</div><div> </div><div>Of course, because Varnish operates at a lower level, with fewer rules, it needs an excellent configuration scheme, and that's probably what trips people: the configuration language is actually a programming language that allows you to dictate very precisely how each request is handled. Here an article I wrote some weeks ago about this: <a href="https://info.varnish-software.com/blog/finally-understanding-built-in-vcl" rel="noopener noreferrer">https://info.varnish-software.com/blog/finally-understanding-built-in-vcl</a></div><div> </div><div>For purging, I won't mince my words: nginx is bad and you should stay away from it, it's limited and impractical. Varnish on the other side is once again very low-level and will force you to implement your own logic, but the primitives are much more powerful. And, lucky you, here's a ready-made VCL framework you can use: <a href="https://github.com/varnish/toolbox/tree/master/vcls/invalidate" rel="noopener noreferrer">https://github.com/varnish/toolbox/tree/master/vcls/invalidate</a></div><div> </div><div>Hope this helps</div><div> </div><div>Cheers,</div><div><div><div><div><div>--</div>Guillaume Quintard</div></div></div></div></div> <div><div>On Tue, Jul 27, 2021 at 3:17 AM s s <<a href="mailto:mailme.s@yandex.com" rel="noopener noreferrer" target="_blank">mailme.s@yandex.com</a>> wrote:</div><blockquote style="border-left-color:rgb( 204 , 204 , 204 );border-left-style:solid;border-left-width:1px;margin:0px 0px 0px 0.8ex;padding-left:1ex"><div>Hello all,</div><div>   I am quite new to Varnish.  I have been reading about both Varnish and Nginx+Redis for page caching, and I am particularly interested in dynamic caching and cache purging.  I have read in a number of posts that Varnish is "more flexible" in this regard, but without many additional details on this.  Can you please explain what features Varnish provides for dynamic page caching and cache purging, especially which are not available (or are more limited) in Nginx+Redis?  Please forgive me if my question is very basic/ignorant.  As I said, I am new to Varnish.</div><div> </div><div>Thanks and Best Regards,</div><div>Sal</div>_______________________________________________<br />varnish-misc mailing list<br /><a href="mailto:varnish-misc@varnish-cache.org" rel="noopener noreferrer" target="_blank">varnish-misc@varnish-cache.org</a><br /><a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noopener noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></blockquote></div></blockquote>