Caching solutions with Varnish

100 %
0 %
Information about Caching solutions with Varnish

Published on February 18, 2014

Author: GeorgePlaton



Caching solutions with Varnish - presentation held by Bogdan Hadadea at Open Coffee Tech meetup

Caching Solutions: Varnish with Bogdan Hadadea

1. General Description: Varnish • HTTP Accelerator • Caching reverse proxy o Sits in front of any HTTP server • Load Balancer • Fail Over System • Perfect Browser caching solution o Prevents hard refresh calls • Typical speedup: 300x-1000x • VCL – compiled to C • ESI

1. General Description: Varnish ESI – Edge Side Includes • Allows page fragmentation • Fragments with different TTL • ESI are serialized • Configurable depth of ESI calls • Doesn’t support alt and noerror attributes • ESI calls can’t set cookies

2. Usage: Varnish • Originally built for Norwegian newspaper • Current users: o o o o o Facebook Twitter Hulu BBC Wired

3. Architecture: Varnish - Overview

3. Architecture: Varnish Main methods: • • • • • vcl_recv – beginning of request vcl_fetch – after response from backend vcl_hash – how to create a hash key vcl_deliver – before a cached object is delivered vcl_error – when there is an error

3. Architecture: Varnish VCL_RECV: • • • • Manipulate/remove cookies Manipulate/add/remove headers Request standardization Cache bypassing

3. Architecture: Varnish VCL_FETCH • • • • • Enable ESI Manipulate headers Manipulate cookies Vary Set/manipulate cache times

4. Comparison: Squid Advantages of Squid over Varnish: • Built in SSL support • Better support for streaming delivery of objects • Support for antivirus plugins Advantages of Varnish over Squid: • Amazing configuration system – VCL • Better performance and scalability • Better invalidation support • Better module support

5. Conclusion • Simple and great performance increase • VCL is powerful but sometimes simple is better • Make sure you can still handle a cold start

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Varnish HTTP Cache — Varnish HTTP Cache

You can access the varnish-cache homepages with HTTP or HTTPS as you like. We save the logfiles from our Varnish instance for a limited period ...
Read more

Varnish Cache | Varnish Software

Varnish Cache. The cache is often the most critical piece of software for a web-based business. Varnish Cache is a powerful open source HTTP engine/reverse ...
Read more

Varnish Software | Varnish Software

Solutions to deliver your digital content fast at any scale. Varnish Plus and Varnish API Engine are the indispensable common denominators among the world ...
Read more

Caching solutions with Varnish - Technology - documents

Caching solutions with Varnish - presentation held by Bogdan Hadadea at Open Coffee Tech meetup
Read more

Page Caching: Varnish vs Nginx FastCGI Cache

Varnish has long been a part of the stack we use here on our site, handling full-page caching, but after some benchmarking it looks like Nginx FastCGI ...
Read more

Caching Solutions | Extendware Magento Blog

Caching Solutions Why So Slow, Magento? ... This translates into a speed similar to a Varnish caching solution, yet with a better cache hit rate, ...
Read more

nginx - Alternatives to Varnish for Windows Server - Stack ...

Alternatives to Varnish for Windows Server [closed] ... caching solutions like Squid, Varnish and HAProxy are designed to run on dedicated boxes, ...
Read more

High Performance Varnish Optimised VPS Hosting

Have a High Traffic Website? ... time is by optimising your server for caching. We specialise in Varnish which works to "cache" your ... Solutions. Our ...
Read more

Reverse Proxy (Varnish) vs. Module (Boost) Caching ...

I’ve been doing some research into caching solutions for Drupal sites running on a LAMP server. I’ve looked into module solutions such as Boost, and I ...
Read more