Skip to content
All writing ‹ Part 09 of 18 · A Cache Is a Chain, Not a Box
Engineering · 2 min read

The Path of One Request

One request to a CDN domain passes DNS, the Akamai edge, and the origin load balancer. Why "how long until users see the new file" has no single answer.

A request sent to cdn.example.com passes three layers: DNS, the CDN edge, and the load balancer at the origin.

I first drew this picture to answer one question: “After I upload a file to the bucket, how long until users see the new version?”

Browser cdn.example.com CNAME → cdn.example.com.akamaized.net Akamai edge (default TTL 30 days) miss → origin: origin.example.com HTTP load balancer picks a backend by URL path storage bucket (the real file)
A request goes through DNS, the Akamai edge, and the load balancer before it reaches the file in the bucket.
  1. DNS: cdn.example.com points to the Akamai edge hostname with a CNAME (Akamai Property: One Edge Config).
  2. Akamai edge: if it has a copy, it replies at once. If not, it fetches from the origin.
  3. Load balancer: it hands the request to the right bucket by path (How the Load Balancer Picks a Backend).

After I drew it, I saw that the question has no single answer. The answer depends on the TTL of each layer on the path (TTL Is Set in Three Places).

To answer “how long until it updates?”, walk the path and ask each layer for its TTL.

Related: Load Balancer: One Entrance, Many Backends by Rule, Akamai Property: One Edge Config, How the Load Balancer Picks a Backend, TTL Is Set in Three Places. Or go back to the series overview.

↑↓ navigate ↵ open esc close