Blog / How the internet works /

Hosting a website for African readers: latency and where to host

You build a site, test it on your fast connection, and it feels fine. Then a reader in Lagos, Nairobi or Accra opens it on a mid-range phone and mobile data, and it crawls. The usual suspect is distance: the server is far away.

If your readers are in Africa, where you host your website matters, but it is only one of several things that do. This post explains latency in plain words, how to pick a hosting location, and what often helps more than moving the server.

What latency is

Latency is the delay between asking for something and the first response arriving. Data moves very fast, but it still has to travel through cables and routers, and every hop adds a little time.

Think of a phone call with a satellite delay: the words are clear, but the pauses between turns make it tiring. Loading a web page involves many such round trips. The browser looks up the address, opens a connection, secures it, asks for the page, then asks for dozens of files. If each round trip is slow, the delays stack up. I follow the whole sequence in how a website really loads: from server to screen.

Why Africa is a special case

Three things about the picture are different.

1. Traffic often travels a long way. Historically, much African internet traffic went abroad, often to Europe, before coming back, even when sender and receiver were in the same country. That has improved as local exchange points and data centres have grown, but it still happens. A request that leaves a country, reaches a server in another continent and returns will take longer than one that stays regional.

2. Mobile networks dominate. Most readers are on phones and mobile data, where speeds and delays vary by network, place and time of day. A page that is acceptable on fibre may be painful on a busy mobile network.

3. Data is expensive and devices vary. Many readers are careful with data, and a heavy page costs them money. Phones in the mid and low range have slower processors, so heavy scripts hurt twice.

So the goal isn’t just a close server. It’s sending less data, in fewer trips, from nearby.

Where to host: your options

1. A server in Europe

For a long time this was the practical default: lots of choice, strong providers, and reasonable routes from West Africa to Europe on many networks. Often good enough, especially with a CDN.

2. A server in Africa

South Africa has the most mature hosting market, with data centres in Johannesburg and Cape Town, and there are providers in Nigeria, Kenya and elsewhere. A local or regional server can reduce latency for readers nearby.

The catch: choice, features and pricing vary, reliability depends on power and connectivity at the facility, and some local plans are weaker than the big international ones. Check track record and support before committing. Power supply is a real consideration, as I discussed in data centres and AI: why the internet needs more power.

3. A server near your actual readers, wherever that is

If most readers are in Nigeria, then a Lagos or nearby region may serve them best. If they are spread across the continent and the world, a central choice with a CDN beats trying to be everywhere.

4. A global platform with edge locations

Some platforms and managed services run your site from many locations automatically. That reduces the “where do I host?” question, though not entirely.

No option is best for all. The right answer starts with: where are my readers?

Step one: find out where your readers are

Look at your analytics for countries and cities. A site with 70 percent of readers in Nigeria and Ghana has different needs from one with a global audience. Don’t guess, and don’t host for the audience you wish you had.

Search Console and your analytics will both show locations. Check also what devices and connections they use if you can.

Step two: measure instead of assuming

Before you move anything, test.

  • Use a speed test tool that lets you pick a test location, and compare results from Europe, South Africa and elsewhere.
  • Look at time to first byte, which tells you how long the server and connection take to start responding. I explain that in server response time: what counts as slow.
  • Ask a real reader in your target country to open the site and tell you how it feels.

Numbers from one test on one day are only a guide. Try a few times.

A CDN often matters more than the server location

A content delivery network keeps copies of your files in many places and serves them from the closest one. For images, scripts, styles and fonts, the visitor downloads from a nearby location instead of your origin server.

Two cautions for African readers. First, check that your CDN actually has locations in or near Africa. Providers differ in how many they run on the continent and how well they are connected. Second, a CDN is best at static files. If your pages are built on request, by WordPress for example, the first byte still comes from the origin unless the CDN is also caching full pages.

I covered the basics in HTTP/2, HTTP/3 and CDNs, and the settings I’d start with in Cloudflare settings that help speed and security.

Make the page lighter, because it helps more than you’d think

Whatever you choose, reduce what travels.

  • Compress and resize images, and use modern formats.
  • Cut scripts. Every analytics tool, chat widget and font adds trips.
  • Cache pages so the server does not rebuild each one.
  • Limit fonts and host them yourself where it helps.
  • Test on a mid-range phone with throttled data, not only on your laptop.
  • Avoid autoplay video and large sliders.

These changes help every reader, and for readers paying for data they feel like respect. Page speed on a budget: what to fix first gives the order I would work in.

A quick decision guide

Your situation A sensible start
Readers mostly in one African country Host in that region or a well-connected nearby location, add a CDN with local presence
Readers across Africa and the world A solid host in Europe or South Africa plus a CDN and page caching
Mostly Western readers, some African Host where most readers are, use a CDN, keep the page light
Shop that needs fast checkout Prioritise a reliable host and fast server response over the cheapest plan
Tiny budget Lightweight theme, page caching, a free CDN tier, optimised images

What not to do

  • Don’t move hosts without measuring first. You might spend a weekend for a tiny gain.
  • Don’t choose on price alone. A cheap plan on an overcrowded server can be slower than a distant good one.
  • Don’t forget uptime and support. A fast server that goes down is worse than a slightly slower one that stays up.
  • Don’t assume “Africa” is one place. Conditions in Lagos, Nairobi and Cape Town differ.

Key takeaways

  • Latency is the delay caused by distance and network hops, and it stacks up over many requests.
  • African readers are often on mobile data and mid-range phones, so lighter pages help a great deal.
  • A nearby server helps, but a CDN with African presence and good caching often helps more.
  • Start from where your readers are, and measure before you move.

Where do most of your readers actually live, and have you ever tested your site from there?