DELTAWEB
All posts
Performance

Web Infrastructure Glossary: CDN, Edge, TTFB, DNS and More

Short definitions of CDN, edge, TTFB, DNS, anycast, origin, cache hit, SSG and SSR, showing how each term affects a multilingual export website in practice.

Web Infrastructure Glossary: CDN, Edge, TTFB, DNS and More
12 minReading time
Arif KuruAuthor

Web infrastructure terms name the layers a website passes through before a visitor sees it: DNS, which turns a domain name into an IP address; the CDN, which serves content from geographically distributed servers; the edge, which runs logic at the point closest to the user; and the origin, the server where the content is actually produced. Each of these concepts solves a different latency or resilience problem, which is why each one needs a precise definition before it appears in a proposal or an audit.

This glossary covers nine terms that come up most often in export website projects: anycast, cache hit, CDN, DNS, edge, origin, SSG, SSR and TTFB. At the end of every definition, the effect on an export site is stated separately. The text is meant to help teams use the same words in the same sense, not to choose a provider. Product features and prices change over time, so no product comparison is made here. For the current behavior of any service, check the official documentation of that provider.

Latency and capacity are different things

The most common mistake in infrastructure discussions is mixing up speed with capacity. A site that opens quickly for one visitor does not automatically handle thousands of simultaneous visitors. The delay a buyer in another country experiences when opening a page is built from network distance, DNS resolution, connection setup, the server's response time and the speed at which the browser renders the page.

This distinction matters for export sites because target markets are usually far from the main hosting location. A site hosted in Türkiye that is reached by a user in Western Europe or North America takes longer to answer than it does for a local visitor. That difference affects the first impression of the site regardless of how good the design is.

A simple rule is useful here. Problems related to network distance belong to the CDN and the edge. Problems related to processing time on the server belong to SSG, SSR and the origin. Problems with name resolution belong to DNS. When an audit keeps these three groups separate, it is much faster to find the layer where a problem actually sits.

An open vintage book beside eyeglasses on a wooden surface
Photo: Melike B / Pexels

Glossary: alphabetical definitions

The entries below follow alphabetical order. Each one gives a short definition first and then describes what it means for an export site.

Anycast

Anycast is a routing method in which the same IP address is announced from several servers located in different parts of the world. A request from a user is delivered to the nearest or most suitable of those points, as chosen by network routing. It is widely used for DNS servers, so it matters mainly for the speed of name resolution responses.

The effect on an export site is indirect. If the name resolution service for your domain runs over anycast, the first step a buyer takes, which is turning the domain name into an IP address, may take less time. Anycast does not make a page faster by itself; it can only reduce the delay of that first step. Confirm which services use anycast in the documentation of your own provider.

Cache hit

A cache hit happens when a request is answered from a caching layer without reaching the origin server. The opposite, a cache miss, means that the request traveled all the way to the origin. The hit ratio shows what share of the requests arriving in a given period were answered from the cache.

For an export site, this term directly determines two things: how quickly pages open in distant markets, and how much load the origin has to carry. A low hit ratio is a frequent problem on multilingual sites, because each language and each country can create its own set of cache keys. If the cache keys do not separate languages and markets correctly, the cache may serve the wrong version to the wrong visitor. A related article on these mistakes is available here: cache errors on multilingual sites.

CDN (content delivery network)

A CDN is a network of servers spread across several regions that stores copies of static files and, where the configuration allows, of some HTML responses. The copies are served from the location nearest to the visitor. Images, stylesheets and JavaScript files are the most common content delivered this way.

For an export site, the CDN is one of the most visible terms. A buyer in the target market receives a copy of the page from a nearby location, and the origin server receives fewer requests. A CDN does not replace hosting, however. The place where the content is produced and where the database lives is still the origin. The CDN shortens the path to that origin and spreads the load across more points.

DNS (domain name resolution)

DNS is the system that translates a human-readable domain name into the IP address that machines use to connect. A browser has to complete this lookup before it can request a page. The answer may come back quickly if the record is already cached; if not, the query travels through several points in the resolution chain.

For an export site, DNS needs attention in two ways. The first is the delay of the very first step, which depends on the infrastructure of your DNS provider. The second is risk: a wrongly configured record, or an expired domain name, can make the site unreachable in every market at the same time. A detailed article on managing DNS is available here: DNS management and anycast DNS.

Edge

The edge refers to the processing point that is geographically closest to the user. At the edge, more than caching can run: depending on the platform, it can handle request routing, header changes or light computation. The word is often used in the same context as a CDN, but while every CDN point can be called an edge location, not every edge function is a CDN cache.

The effect on an export site depends on what work is moved to the edge. When language redirection, routing rules or simple cookie handling are handled there, the first response can arrive sooner. Every new edge function, however, is another rule layer that has to be tested carefully and documented. A separate article looks at whether edge hosting and serverless options suit export sites: edge hosting and serverless for export websites.

Origin

The origin is the server where the content is actually produced and the server that the CDN or edge layer asks when it needs a fresh response. When a cache does not hold a response, or when content has been updated, the request reaches the origin.

For an export site, the origin has two consequences. Its response time determines how long a visitor waits after a cache miss. In addition, if the origin can be reached directly from the internet, requests that skip the CDN can add load to the server. For that reason, the origin should be reachable only through the CDN, and the way your provider enforces this restriction should be checked.

SSG (static site generation)

SSG, short for static site generation, describes an approach in which pages are rendered into HTML before any visitor asks for them, during a build step. The generated files can be copied easily across a distribution network, and an application server does not need to run for every request.

For an export site, SSG is a strong option for catalog and product pages whose content does not change often. Because the responses are ready in advance, the time to first byte is usually low and the load is easier to spread. The disadvantage is that when content changes, a rebuild or an incremental update process is required. A longer article on this approach is available here: static site generation for a fast global catalog.

SSR (server-side rendering)

SSR, short for server-side rendering, means that the HTML of a page is produced on the server for each request. The response can vary according to the context of the visitor, for example the language or the state of a logged-in session.

For an export site, SSR can make sense when prices, stock levels or market-specific content change frequently. Because each request is processed on the server, however, caching rules need to be designed carefully. Otherwise the response time grows and an outdated version can remain in the cache.

TTFB (time to first byte)

TTFB, time to first byte, measures the period from the moment the browser sends a request until it receives the first byte of the response. The DNS lookup, the connection setup and the time the server needs to produce the response are all included in this value. It does not measure how long the full page takes to load; it shows how quickly the first answer arrives.

For an export site, TTFB is a good starting point for understanding delay in distant markets. Measuring it by country helps separate a problem caused by network distance from one caused by the origin's response time. The measurement method and country comparisons are covered in this article: measuring TTFB by country and server response time.

Comparison table

The table below compares the nine terms through three questions: what the term solves, which layer it works in, and where it is first noticed on an export site.

TermWhat it solvesLayerFirst noticed in
AnycastRouting one IP to the nearest pointNetworkDNS response time
Cache hitAnswering without reaching the originCacheOrigin load and page speed
CDNCopying content close to the userDeliveryPage opening in distant markets
DNSTranslating a domain into an IP addressName resolutionDelay before the connection starts
EdgeRunning logic close to the userEdgeRedirects and first response
OriginProducing the contentServerRequests that miss the cache
SSGProducing pages in advanceBuildResponse time and load spread
SSRProducing pages at request timeServerTTFB and content freshness
TTFBMeasuring the first response timeMeasurementResponse time by country
A woman turning the pages of a dictionary on a wooden desk
Photo: kaboompics / Pexels

How a request reaches a buyer abroad

Knowing the terms separately is not enough. It also helps to picture the order in which a request passes through these layers. The steps below describe a typical path; depending on the provider and the architecture, the sequence may differ.

  1. The buyer's browser resolves the domain name (DNS). If the answer is already cached, this step is short.
  2. The connection is opened to a CDN or edge point that is geographically close to the buyer. Anycast can help with this routing.
  3. The edge point looks for the page in its cache. If the content is there, a cache hit occurs and the response is returned directly.
  4. If the content is missing or its cache lifetime has expired, the request is forwarded to the origin (a cache miss).
  5. The origin returns either a file generated in advance with SSG or a response produced at request time with SSR.
  6. The browser starts processing the page from the moment it receives the first byte. The time up to this point is the TTFB.

Each step of this chain can be timed separately. When a problem appears, following the chain from start to finish shows whether the cause sits in the network, in the cache or in the origin. Suppose, as a fictional example, that a buyer in Germany finds the first load of a page slow. If the cache hit ratio is low and the origin responses are long, the problem may lie in the cache rules or in the origin's response time rather than in the capacity of the CDN. In that case the first step is not to replace the CDN, but to find out which content is not being cached and why.

Common misunderstandings

In proposals and technical calls, the same words are often used with different meanings. The points below correct the most common confusions.

  • A CDN does not replace hosting. A CDN copies and distributes content; the place where the content is produced is still the origin.
  • Edge does not always mean a CDN cache. Routing and light processing can also run at the edge.
  • TTFB is not the full page load time. It only measures how quickly the first response arrives.
  • SSG and SSR do not mean the same thing. One produces pages in advance, the other produces them at request time.
  • A high cache hit ratio does not solve every problem. If the cache keeps the wrong language or the wrong country version, a visitor can see the wrong content.
  • Anycast does not directly make a page faster. Its effect is limited to the network routing step, such as the DNS lookup.

Using the terms in an audit

To use this glossary as an audit checklist, turn each term into a question. The questions below do not depend on a particular provider. When the answers are read together, it becomes clearer which part of the infrastructure is weakest.

  • How long have the name resolution records for our domain been stable, and who manages them?
  • How do our TTFB values from target markets vary by country?
  • Which content types are cached on the CDN, and do these rules separate language versions?
  • Is a low cache hit ratio caused by short cache lifetimes or by content that changes often?
  • Is the origin open directly to the internet, or is it reachable only through the CDN?
  • Which of our pages are generated with SSG and which with SSR, and does that choice fit how often the content changes?
  • If a rule runs at the edge, is there a test plan and a rollback plan for it?

An answer to each question is not a decision; it is a data point. The areas where answers are missing become the questions to ask in the next infrastructure meeting. Knowing which layer a problem sits in also determines who is best placed to solve it.

Using these terms correctly is the first step toward talking about infrastructure in the same language as your teams and your providers. Optimization done without knowing which layer a word describes often ends up as effort spent in the wrong place. Which of your site's slowest steps can you name with one of these terms today?

FAQ

Frequently Asked Questions

  • Does a CDN replace hosting?

    No. A CDN keeps copies of content on servers close to users, but the place where content is produced and the database lives is still the origin. Hosting and CDN decisions should therefore be evaluated separately.

  • Is edge the same as a CDN?

    Not exactly, although the two are often mixed up. Every CDN location can be called an edge location, but edge logic can also include routing and light processing beyond caching. Confirm what runs where in your provider's documentation and your own configuration.

  • Which TTFB value should an export site track?

    Track TTFB measured from your target markets, broken down by country. A single average hides the difference between network distance and origin response time. Read these numbers together with real user experience measurements.

  • What does a low cache hit ratio point to?

    A low ratio means most requests reach the origin server. That can slow page opening in distant markets and increase origin load. Review cache lifetimes, cache keys and how often content changes together.

  • Should an export site use SSG or SSR?

    The answer depends on the page type. Catalog and product pages whose content changes rarely can be generated with SSG, while frequently updated or market-specific content may suit SSR. Both approaches can be used within the same site.

  • What does anycast DNS provide?

    Anycast announces the same IP address from several points, so name resolution requests reach the most suitable point. This can reduce the delay of the first step in a page request. Confirm which DNS service uses anycast in your provider's documentation.

  • Why limit direct access to the origin?

    When the origin is reachable only through the CDN, requests that skip the CDN do not add load to the server. The restriction also keeps traffic paths predictable. The exact setup depends on your provider and should be checked in its official documentation.

  • Which term should an audit start with?

    Starting by identifying which layer a problem sits in is the most practical approach. Network distance points to the CDN and TTFB, name resolution to DNS, server processing to the origin, and page generation to SSG and SSR. The questions in the glossary can then be turned into a checklist in that order.

Related Articles

No comments yet

Leave a Comment