Varnish - Journey from Beginner to Proficient

nikhilsukul

Performance has always been a challenge that every new site faces irrespective of the technology in which it has been built. Performance of the site is of paramount importance because the website will not receive the desired visibility among its audience if it is slow. As an industry standard and based on statistics we already know that Loading time is a major contributing factor to page abandonment. Page abandonment increases upwards from 25% as the page load time increases from 4 seconds.

To increase the performance of the site, general thought process is to add additional resources (RAM, CPU, servers etc.), but that not only hits your pocket, but also requires some time to configure, test and finally deploy on production.

So, what is the solution?

One of the quickest solution without investing any money is to install Varnish. Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. It is installed in front of any server that implements HTTP protocol and configure it to cache the contents. It is used by high-profile, high-traffic websites including Wikipedia, online newspaper sites such as The New York Times, The Guardian, The Hindu, Corriere della Sera, social media and content sites such as Facebook, Twitter, Vimeo, and Tumblr. Of the Top 10K sites in the web, around a tenth use the software.

To understand Varnish, pre-requisite is to understand the basics such as:

  • What is proxy or reverse proxy,
  • Why and when we should be requiring varnish.
  • What are its features.

For intermediate level:

  • How to run HTTPS sites in Varnish
  • How Ngnix is configured for Varnish
  • How to configure Varnish for PHP application
  • How to configure Varnish for Drupal

For advanced level:

  • Varnish as a load balancer
  • Understanding varnish file and default.vcl file

This session will cover all levels stated above (basics, intermediate and advanced) only assumes familiarity with basic drupal caching concepts.

What we'll discuss:

  1. What is Varnish

  2. Proxy vs Reverse Proxy

  3. What does Varnish do?

  4. Varnish Licensing

  5. Varnish Features

  6. HTTPS with Varnish- Ngnix

  7. HTTPS with Varnish- Apache

  8. ESI

  9. Varnish Installation

  10. Varnish File Explained

  11. VCL-Varnish Configuration Language

  12. Default VCL explained

  13. Configuring Varnish for PHP

  14. Configuring Varnish for Drupal

  15. Useful Commands For Varnish

  16. Debugging Varnish

  17. Demo

Session Track

Performance and Scaling

Experience Level

Intermediate

Drupal Version