Let's build a CDN - Part 1

27/05/2024 24 min Episodio 5
Let's build a CDN - Part 1

Listen "Let's build a CDN - Part 1"

Episode Synopsis


This started as a conversation between James A Rosen & Gerhard in August 2023. Several months later, it evolved into a few epic pairing sessions captured in these GitHub threads:thechangelog#480 (reply in thread)thechangelog#486The last pairing session eventually lead to 🎧 Kaizen! Should we build a CDN? This is the follow-up to that. How far did we get in 1 hour?LINKSThe 5-hour CDNvarnish - Docker Official ImageIntroduction to VarnishMagento2 Varnish configMagento Internals: Cache Purging and Cache TagsVarnish modulesEPISODE CHAPTERS
(00:00) - Intro

(02:08) - The 5-hour CDN

(03:44) - Varnish container image

(05:00) - Varnish container image command

(06:31) - Local-friendly Varnish container image

(06:44) - Varnish command-line options

(08:30) - Varnish parameters

(09:45) - Experimenting with Varnish locally

(12:36) - Varnish purging

(15:22) - Backend fetch failed

(16:20) - Varnish debug mode & logs

(17:29) - Why can't we query the backend?

(21:08) - Why is the backend sick?

(22:49) - That's the problem!