Cloud & Data Centers

Edge Locations and Points of Presence

What a PoP is, how your request finds a nearby one, and what it can and can't speed up.

Key takeaways

  • A PoP is a place where a network has equipment and connections to other networks, usually near large population or interconnection hubs.
  • Edge locations cut round-trip distance by finishing connections and serving cached content close to the user.
  • Traffic reaches a nearby site mainly through anycast routing or DNS answers that vary by location.
  • Nearby in network terms isn't always nearby on a map, because routing follows agreements between networks.
  • Anything that must come from your central servers still pays the full distance, so caching rules decide much of the benefit.

A point of presence, or PoP, is a site where a network keeps equipment close to the people it serves. An edge location is the cloud and content delivery version of the same idea: a smaller facility near users that handles requests before, or instead of, a distant central data center. When a page loads quickly even though the company behind it is on another continent, an edge location is often the reason.

This article covers what's inside these sites, how your traffic ends up at one, what they do well and where they don't help at all.

Why distance still matters

Data moves through fiber at roughly two thirds of the speed of light in a vacuum. That's fast, but a round trip across an ocean still takes tens of milliseconds or more, and real cable routes are longer than straight lines. No upgrade to your plan changes this, as explained in latency and the speed of light.

Loading a page takes several round trips. Your device looks up the name, opens a connection, negotiates encryption, sends a request and waits for a response. Then the page asks for images, scripts and fonts. Each round trip multiplied by a long distance adds up to a noticeable wait.

An edge location attacks that multiplier. If the first several exchanges happen with a server in your own region, each one costs a fraction as much.

What's inside a point of presence

A PoP isn't usually a huge building owned by one company. Often it's a few racks, or many racks, inside a carrier-neutral data center where lots of networks meet. The equipment typically includes routers that connect to internet providers, switches, and servers that cache content, terminate encryption and filter traffic.

The location is chosen largely for its connections. Being in the same building as an internet exchange point lets a network hand traffic directly to many local providers. Those handoffs happen through peering, where networks swap traffic between their own customers, or through paid transit. The difference is covered in peering versus transit.

From your device to the origin
Your device Browser or app starts the request. Your internet provider Carries traffic to a handoff point. Edge location Ends the connection, checks cache, filters. Regional cache tier Optional middle layer that absorbs misses. Origin Your own servers or cloud region. Your device Browser or app starts the request. Your internet provider Carries traffic to a handoff point. Edge location Ends the connection, checks cache, filters. Regional cache tier Optional middle layer that absorbs misses. Origin Your own servers or cloud region.

Some content networks also place cache appliances directly inside an internet provider's network, which moves the content closer still and keeps popular traffic off the provider's outside links.

Edge locations, PoPs and cloud regions

Vendors use these words loosely, so read their definitions. Generally, a cloud region is a large cluster of data centers where you run databases and applications, and it's usually split into zones, as described in regions and availability zones. Edge locations are far more numerous, smaller, and offer a narrower set of services.

You don't normally choose a single edge site to deploy to. You configure a service, and the provider applies it across its whole footprint. A region is something you pick. The edge is something you switch on.

A PoP count printed on a vendor's page is hard to compare across companies, since one may count a city as a single location and another may count each facility.

How your request finds a nearby site

Two techniques do most of the steering.

With anycast, many sites announce the same IP address into the internet's routing system, called BGP. Each network along the way follows its best route to that address, which usually leads to a topologically close site. If one site stops announcing, routes shift to others. You can read more in anycast: one address, many locations.

With DNS-based steering, the provider's name server returns different addresses depending on where the question appears to come from. It's flexible, but it often sees only your DNS resolver's location, not yours, and answers stay cached until their time to live expires.

An anycast request, step by step
1 Name lookup DNS returns a shared address. 2 Routing picks a path Your provider follows its preferred route. 3 Nearby site answers Connection and encryption finish close to you. 4 Cache check A stored copy is returned if one is fresh. 5 Fetch on a miss The edge asks the origin and may keep a copy. Name lookup DNS returns a shared address. 1 Routing picks a path Your provider follows its preferred route. 2 Nearby site answers Connection and encryption finish close to you. 3 Cache check A stored copy is returned if one is fresh. 4 Fetch on a miss The edge asks the origin and may keep a copy. 5

"Best route" in BGP reflects policies and business relationships, not a measurement of delay. That's why you can occasionally be served from a city that looks odd on a map.

What the edge does well

Caching static files is the classic job. Images, video segments, style sheets and software downloads are identical for everyone, so one stored copy can serve many people. How a CDN speeds up a website walks through this in detail.

Connection handling helps even for content that can't be cached. The edge can complete the TCP and TLS handshakes, or a QUIC handshake, near the user, then forward the request to the origin over a connection it already keeps open and warm.

Security filtering fits naturally too. A distributed footprint spreads attack traffic across many sites, and request filtering can reject bad requests before they reach your servers.

Many providers also let you run small pieces of code at the edge: redirects, header changes, authentication checks, or choosing a page variant.

A worked example of the savings

Say a visitor is 100 milliseconds round trip from your server and 10 milliseconds from an edge site. These are made-up figures, but the pattern holds. A fresh connection using TCP and TLS 1.3 needs one round trip for TCP, one for the TLS handshake, and one for the request and response.

Straight to the origin, that's about 300 milliseconds before the first byte of the page arrives. With the edge serving a cached copy, it's about 30 milliseconds. Name lookup time comes on top of both.

Now suppose the page isn't cacheable. The visitor still finishes both handshakes with the edge in 20 milliseconds. The edge then forwards the request over an existing connection to the origin, which takes roughly one long round trip, close to 100 milliseconds. The total lands near 130 milliseconds instead of 300. You saved the handshakes, though the data still had to travel.

HTTP/3, which runs over QUIC, combines the transport and encryption setup, so the direct path improves too. The gap narrows but doesn't vanish. HTTP/1.1, HTTP/2 and HTTP/3 compares them.

Cache hits, misses and tiers

Each edge location keeps its own cache. A file that is popular in one city may never have been requested in another, so the first visitor there causes a miss and a trip to the origin. Rarely requested files also get evicted to make room for busier ones.

Many providers add a middle tier, sometimes called a shield or regional cache. Edge sites ask the tier before asking you, so one fetch can fill many locations and your origin sees far less repeat traffic. It adds a hop on a miss, which is usually a good trade.

You influence hit rates with a few choices:

  • Give static files long lifetimes and change the file name when the contents change.
  • Keep query strings and cookies out of the cache key unless they truly change the response.
  • Avoid varying responses on headers that differ for almost every visitor.

The details of lifetimes and headers are in browser caching and Cache-Control headers.

When an edge location has trouble

A single site can lose power, lose a connection or develop a software fault. With anycast or DNS steering, traffic normally moves to another location, at the cost of some extra distance and a cold cache. Users in one area may notice slowness or errors while others see nothing.

A configuration mistake is a different matter, because it can spread to every location at once. For services where that would hurt badly, keep a tested way to send traffic around the provider, and make sure your origin could survive the load if you did.

What the edge can't fix

If a request needs your central database, the trip still has to happen. Worse, code running at the edge that makes several database calls to a distant region can be slower than running that code next to the data. Put logic where its data is.

The edge also can't fix a weak last mile. Poor home Wi-Fi, a congested cell sector or a bloated page full of scripts will feel slow however close the server is.

Personalized pages, account screens and checkout flows are usually not cacheable in a shared cache. Caching them by mistake can show one person another person's data, which is far worse than being slow. Mark private responses with appropriate Cache-Control headers and test them.

Seeing which location serves you

Many providers add response headers that hint at the serving site and whether the cache was hit. Header names vary, so check your provider's documentation. From a terminal on macOS, Linux or recent Windows, you can view headers like this:

curl -sI https://example.com/logo.png

On Windows PowerShell, type curl.exe instead of curl to be sure you get the real tool. Look for cache status headers and the Age header, which reports how many seconds a response has been sitting in a cache.

A traceroute can show the path to a service, though many routers don't reply, and anycast means someone in another city will see a different destination behind the same address.

Choosing whether you need it

If your visitors are all in one region and your server is there too, an edge network may add little speed. It can still help with traffic spikes, TLS management and attack absorption.

Where an edge network pays off
Far users, cacheable files Large speed gain and lower origin load. Far users, dynamic pages Modest gain from faster handshakes. Near users, cacheable files Helps with spikes and bandwidth. Near users, dynamic pages Mainly security and resilience benefits. Far users, cacheable files Large speed gain and lower origin load. Far users, dynamic pages Modest gain from faster handshakes. Near users, cacheable files Helps with spikes and bandwidth. Near users, dynamic pages Mainly security and resilience benefits.

Before you sign up, measure from where your users are. Check cache hit ratio after launch, set sensible cache lifetimes, and have a plan for purging stale files. Also protect the origin: if attackers can find its address and reach it directly, they can walk around the edge entirely. Restricting the origin to accept traffic only from your provider closes that door.

Common questions

Is an edge location the same as a CDN?

A CDN is the service; edge locations are the places it runs from. The same sites often host other services, such as DNS, firewalls and edge functions.

Does using the edge change where my data is stored?

Cached copies and request processing can happen in many countries. If you have data residency obligations, check what your provider lets you restrict and read the contract, since rules differ by place and have been changing.

Why did my update not show up?

An edge cache may still hold the old copy. You can purge it, wait for it to expire, or use versioned file names so each new release gets a new address.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Cloud & Data Centers →

Latest news on this topic