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 to | Distance, about | Theoretical minimum RTT |
|---|---|---|
| A server in the same city | under 50 km | under 1 ms |
| Ganja | 300 km | 3 ms |
| Istanbul | 1,760 km | 18 ms |
| Moscow | 1,930 km | 19 ms |
| Warsaw | 2,550 km | 26 ms |
| Frankfurt | 3,350 km | 34 ms |
| Amsterdam | 3,630 km | 36 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:
| RTT | First byte, 3 round trips | Form with 5 sequential API calls on an open connection |
|---|---|---|
| 5 ms | 15 ms | 25 ms |
| 34 ms | 102 ms | 170 ms |
| 80 ms | 240 ms | 400 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-IPThe route, hop by hop. On Ubuntu and Debian:
sudo apt install -y mtr-tiny
mtr -rwzbc 100 SERVER-IPLoss 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 situation | Better location | Reason |
|---|---|---|
| Shop, clinic, school, portal with visitors in Azerbaijan | Baku | Every request is short |
| 1C or remote desktop for an office in Baku | Baku | Each keystroke is a round trip |
| Customers mainly in Germany, Poland, the Netherlands | Western Europe | Distance works against Baku |
| Customers mainly in Turkey | Turkey | Closer to them than Baku |
| Trading terminal with a broker in London or Frankfurt | Near the broker | See the forex page |
| Data must stay in Azerbaijan | Baku | Location is fixed by the rule, see data residency |
| Nightly jobs, build server, archive | Either | Choose 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.