NZIFF and Fastly

Preview:

DESCRIPTION

Using custom VCL to move a website with user login and cookies to a CDN. With Privacy Parrot, Crypto Cat and Debug Chameleon.

Citation preview

Making NZIFF faster and bigger with Fastly

@avon

Varnish & Fastly

• Fastly let you upload VCL

• POPs in New Zealand!

• (Instant purge - we didn’t use it but it’s a game changer)

• Older version of Varnish (~2.1)

Varnish state machine

vcl_recv & vcl_hash

• vcl_recv processes a request; decides what to do:lookup or pass

• vcl_hash makes a cache key for looking up request and caching responses

vcl_recv

vcl_recv

Cookies

• User session stuff

• nziff.region

privacy privacy

vcl_recv

AJAX AJAX

vcl_recv

Cookies

• User session stuff

• nziff.region

vcl_recv

vcl_recv

vcl_hash

privacy privacy

Privacy & Personalisation

• Cookies

• Accept-Language

• User-Agent

• Custom headers

vcl_recv

vcl_recv

Varnish state machine

vcl_fetch

• vcl_fetch processes the response from the backend

• vcl_fetch runs for pass and miss

vcl_fetch

vcl_fetch

Varnish state machine

vcl_deliver

comment all the vcl

Stats