Skip to content

Category

Caching

Welcome to the Caching section of my blog, where I share insights and expertise on using Varnish and Fastly. Here, you will find articles that detail my experiences in learning, setting up, configuring Fastly products.

Caching · 13 May 2024 · 6 min

Error, Restart and Log subroutines

Varnish Configuration Language ( VCL )

We’re exploring the Error, Restart, and Log subroutines, but a heads-up: Restart isn’t technically a subroutine in the usual sense. For ou…

Read article
Caching · 18 Apr 2024 · 6 min

Terraform and Fastly

Deploy a custom vcl with Fastly

How to install Terraform On a Mac : brew install hashicorp/tap/terraform Verify Terraform is set up : terraform -help Create a the main terraform file…

Read article
Caching · 26 Mar 2024 · 5 min

How to install Varnish with Docker

Spin up a varnish server for testing

Create the docker container docker run --name varnish -p 3456:80 varnish This command runs a Docker container named “varnish” using the &#…

Read article
Caching · 24 Mar 2024 · 10 min

Hash, Hit, Miss and Pass Subroutines

Varnish Configuration Language ( VCL )

VCL_hash From this diagram we can see vcl_hash runs after receive and there is no way to avoid it. Indeed, just after hash the hash table look up take…

Read article
Caching · 18 Mar 2024 · 15 min

Recv, Fetch, and Deliver Fundamentals

Varnish Configuration Language ( VCL )

Varnish state machine flow When a request comes into Fastly, it’s assigned out from a load balancer to one of the nodes on the POP, and that wil…

Read article
Caching · 17 Mar 2024 · 4 min

Fastly conditions and settings in the UI

how to get started with custom VCL

Get started with custom setting and VCL with Fastly When a request goes to Faslty it goes to the POP and then gets send to one of the node. The node h…

Read article
Caching · 14 Mar 2024 · 2 min

Varnish Configuration Language

Methods of modifications

VCL states : This article zooms into the steps of dealing with requests using Varnish, shown in a diagram. We’ll mainly look at three important…

Read article
Caching · 13 Mar 2024 · 4 min

Fastly Shielding basics

offload your origin with an extra layer !

Without shielding To understand shielding, let’s look at this diagram. My main server is in Roubaix, France. My aim is to lighten the load on th…

Read article
Caching · 13 Mar 2024 · 4 min

How clustering works on Fastly

nodes, pops, hash keys and benefits

The clustering nodes In a Point of Presence (PoP), there are several nodes that work independently. Each node has its own hash table to keep track of…

Read article
Caching · 12 Mar 2024 · 3 min

Fastly Request Collapsing

concepts & benefit

What’s request collapsing ? Concept of request collapsing in the context of a cache system refers to the scenario where multiple identical reque…

Read article
Caching · 11 Mar 2024 · 6 min

Cache purging options

refresh objects in the cache with Fastly

Why purging ? If you want to make sure everyone sees the latest version of something on a website, like a new headline, you might need to “purge…

Read article
Caching · 11 Mar 2024 · 7 min

Key caching concepts

HIT / PASS / MISS and behaviours

What’s caching ? In a web application, caching works like a high-speed memory that stores frequently accessed data or content. When a user reque…

Read article