Skip to content
Theory · Scaling a service · lesson 7 of 8

CDN and static files

A product page is not one response but several dozen. The shop service assembles the product data, and besides that the browser loads 8 photos of 100 KB, 1.5 MB of scripts and styles, and fonts. Everything but the data is the same for every shopper and changes only with a new version of the site. Such files are called static files.

In this lesson

  • How a CDN works
  • What to serve through a CDN
  • How to update files
  • What it costs
  • Common mistake
  • Key points