Skip to content
← All components

Edge & networking

CDN

Caches static assets and media at edge locations close to users, offloading the origin.

When to use

  • Images, video segments, JS/CSS
  • Map tiles and other cacheable API responses

Pitfalls

  • Cache invalidation is slow and costly; version URLs instead
  • Personalised responses must not be cached publicly

Options by provider

The first option is what diagrams show for that provider.

Amazon Web Services

  • Amazon CloudFrontManaged

Google Cloud

  • Cloud CDNManaged
  • Media CDN — built for large-scale videoManaged

Microsoft Azure

  • Azure Front DoorManaged

Open source / self-hosted

  • VarnishSelf-hosted
  • Apache Traffic ServerSelf-hosted

Third-party (works with any cloud)

  • CloudflareManaged
  • FastlyManaged
  • AkamaiManaged

Related concepts

Used in