Super performing
websites with
TYPO3 and
Varnish
Christian Jul Jensen
T3CON11 San Francisco
There is more to
life than just
increasing its
speed
            Mahatma Ghandi
Hello my name is ...

        Christian Jul Jensen
             but you might know me as
                    Julle
A few concepts


• Web caching
  •   Browser cache

  •   Application caching

  •   Transparent caches

  •   Reverse proxies


• Measuring speed
  •   right tools for right tasks

  •   Our goal today: simple benchmarking
TYPO3 Caching


• Knowledge of content
• Page cache
• INT-scripts
You are doing it
wrong!                                            Poul-Henning Kamp

“The majority of you are doing that wrong. Not just wrong as in not
perfect, but wrong as in wasting half, or more, of your performance.
Varnish
r.v. var·nished, var·nish·ing, var·nish·es
 1. To cover with varnish.
 2. To give a smooth and glossy finish to.
 3. To give a deceptively attractive appearance to; gloss over.
Make websites fly


• Web Application Accelerator
• Initiated 2005
• Version 1.0 sep 2006
• Current version 2.1
• 3.0 released on June 16
Basic setup


• POSIX (FreeBSD, Linux, Solaris)
• Packages or source
• VCL
Let’s play!
Challenges
MOC Varnish
Varnish support in TYPO3

                           by Jan-Erik Revsbech
Installing


 • Fetch from TER
 • Enable
 • Use provided VCL
Content awareness


• Hooks into TYPO3 cache
  •   Triggers Varnish purging on cache invalidation


• Supports force-reload
Dynamic content


• Edge-Side Includes (ESI)
• Combine smaller parts of websites
• MOC Varnish does this automatically
• Configuration options
  •   plugin.tx_mysweetplugin_pi1.max-age = <seconds>
More playing!
Other good stuff


 • Load balancing
 • Combining different backends with ESI
Questions?
Thanks

email me:    julle@typo3.org
follow me:      @christianjul

Super performing websites with TYPO3 and Varnish

Editor's Notes