Baku or Europe: which server location is faster for your users

Put the server where most of your users are: Baku for an audience in Azerbaijan, Western Europe or Turkey for an audience there. Distance sets a minimum delay that no processor can remove, and you can calculate it in one line and measure the rest in ten minutes.

Updated:

The limit set by physics

Light in optical fibre travels at about 200,000 km per second, or 200 km per millisecond. A request has to go there and the answer has to come back, so every 100 km between you and the server costs roughly 1 ms of round-trip time (RTT).

The table uses great-circle distances from Baku, rounded. These are calculations, not measurements, and they are the best case that a perfectly straight cable could give.

From Baku toDistance, aboutTheoretical minimum RTT
A server in the same cityunder 50 kmunder 1 ms
Ganja300 km3 ms
Istanbul1,760 km18 ms
Moscow1,930 km19 ms
Warsaw2,550 km26 ms
Frankfurt3,350 km34 ms
Amsterdam3,630 km36 ms

Why the real figure is higher

Cables do not follow great circles. They run along roads, railways and seabeds, around mountains and through the cities where networks meet. Each router adds a little, queues add more in the evening, and two operators may exchange traffic in a third country. A connection between two people in Baku can even leave the country and return if their providers do not exchange traffic locally.

The last part of the path matters as well: office Wi-Fi and mobile networks often add more milliseconds than the trunk line. That is why you measure from the connections your customers use, not only from the office.

One page is many round trips

A single delay is hardly noticeable. Websites repeat it. The first HTTPS request over TCP with TLS 1.3 needs about three round trips before the first byte arrives: one for TCP, one for TLS, one for the request itself (plus DNS). Multiply:

RTTFirst byte, 3 round tripsForm with 5 sequential API calls on an open connection
5 ms15 ms25 ms
34 ms102 ms170 ms
80 ms240 ms400 ms

Server processing time comes on top. The lesson has two halves: distance matters most for chatty software (remote desktop, database clients, admin panels that make dozens of small calls), and it matters little for one large download or for a background job.

Measure it yourself

Nothing on this page was measured by us, because our line is not your customers' line. You need a target in each location: a server you already have, a test address published by a provider, or a machine ordered for one month. Run the tests from a home connection, a mobile hotspot and the office, at noon and at 21:00.

Basic delay and loss. Look at the average and at the spread, not at the best value:

ping -c 50 SERVER-IP

The route, hop by hop. On Ubuntu and Debian:

sudo apt install -y mtr-tiny
mtr -rwzbc 100 SERVER-IP

Loss that shows on one middle hop and disappears afterwards is usually a router that does not answer pings quickly; loss that continues to the last line is real. On Windows use tracert SERVER-IP and pathping SERVER-IP.

What a browser feels, split into phases:

curl -o /dev/null -s -w 'dns %{time_namelookup}\ntcp %{time_connect}\ntls %{time_appconnect}\nfirst byte %{time_starttransfer}\ntotal %{time_total}\n' https://example.com/

The values are in seconds and cumulative. tcp minus dns is about one round trip: that is distance. first byte minus tls, with one round trip subtracted, is the time your application spends thinking. If the second number is 600 ms, moving the server closer will not save the site; fix the queries or the cache first.

Repeat each test at least ten times and compare medians.

Choose by where the users are

Your situationBetter locationReason
Shop, clinic, school, portal with visitors in AzerbaijanBakuEvery request is short
1C or remote desktop for an office in BakuBakuEach keystroke is a round trip
Customers mainly in Germany, Poland, the NetherlandsWestern EuropeDistance works against Baku
Customers mainly in TurkeyTurkeyCloser to them than Baku
Trading terminal with a broker in London or FrankfurtNear the brokerSee the forex page
Data must stay in AzerbaijanBakuLocation is fixed by the rule, see data residency
Nightly jobs, build server, archiveEitherChoose by price and support

If your audience is in Western Europe or Turkey, rent there; we would rather say so now. The Hetzner comparison lists further reasons for choosing a European provider. Cloudraft servers are only in Baku.

Both at once: a server in Baku with a CDN

Mixed audiences rarely need two servers. Keep the application and the database in one place and let a CDN hold copies of images, styles and scripts near visitors abroad. The cache needs clear instructions, for example in nginx:

location /assets/ {
    add_header Cache-Control "public, max-age=31536000, immutable";
}

Use such a long time only for files whose name changes with each release. Before paying, look at which of the CDN's locations answers users in Azerbaijan: some networks serve them from Europe, and then a local visitor downloads pictures from further away than your own server. A response header or mtr to the CDN address will show it. In that case, send only the foreign traffic through the CDN.

The database stays next to the application. An app server in Frankfurt with a database in Baku pays the full distance on every query, the worst of both designs.

Mistakes in comparing locations

  • Testing with a VPN on: you measure the VPN.
  • Comparing a cached page on one server with an uncached page on another.
  • Judging by a speed test. Megabits describe the width of the line; delay describes its length.
  • Trusting a web tool that tests only from the United States or Western Europe.
  • Moving before setting a baseline. Record the curl figures, then migrate the site, then compare.

Questions about Baku and European servers

What is the minimum ping between Baku and Frankfurt?

About 34 ms by calculation: some 3,350 km each way at 200,000 km per second. Real cables are longer, so expect more and measure it on your own line.

Does server location affect Google rankings in Azerbaijan?

Distance influences loading time, which is part of page experience, but content and relevance weigh far more. A clear language and country focus on the site helps more than moving the machine.

Is a server in Turkey a good compromise for Azerbaijan?

It is nearer than Western Europe: roughly 18 ms against 34 ms as theoretical minimums. For users who are all in Azerbaijan it is still a detour; for a mixed Turkish and Azerbaijani audience it can be sensible.

Will a CDN make a local server unnecessary?

Only for static files. Logins, carts, searches and API calls still travel to the origin server, so its location keeps mattering.

Can I see your ping before ordering?

We do not publish latency figures, because they depend on your provider. Ask support for advice, or order one month and test from the connections that matter to you.

Read next

All VPS pages

This page in other languages: Azərbaycanca · Русский

Servers in Baku, prices in manat

Create an account, top up your balance and order the plan you need.