How to choose a data center location for your server
The right location is usually the one closest to most of your users, but distance is only part of the answer. This guide explains how latency works, how to measure it properly, and how data protection rules, CDNs and resilience fit into the decision.
The short answer
Put the server close to most of your users, measured from their networks rather than from your office. Check whether your data has to stay in a certain region, keep the database next to the application, and use a CDN for static files and a second location only when you need resilience.
- Close to most of your users
- Measured from their side, over time
- Inside the region your data rules require
- Database and application in the same place
- A CDN for static content
Where you can run a HyperDC server
Each pin is a location you can choose when you order. The data centers page lists the services available in each.
Why distance turns into latency
Data in fibre travels at roughly two thirds of the speed of light in a vacuum, about 200,000 kilometres per second. The ITU's planning figure for optical fibre is five microseconds per kilometre, so every 100 kilometres of fibre adds about one millisecond to a round trip. Real routes are longer than a straight line on a map, and measurements of real internet paths show round trips several times slower than that theoretical minimum.
Latency also multiplies. Opening a secure web page takes several round trips before the first byte arrives: one for the DNS lookup, one to open the connection, at least one for the TLS handshake and one for the request itself. A server 100 milliseconds away can therefore cost a first-time visitor several hundred milliseconds.
How much latency is too much?
Published guidance for common workloads. Your own application sets the real limit.
| Websites | Time to first byte of 0.8 s or lessGoogle's web.dev guidance; includes DNS, connection and server time |
|---|---|
| Voice calls | Under 150 ms one wayITU-T G.114 planning guidance |
| Remote desktop | Under 150 ms round tripMicrosoft's guidance for Azure Virtual Desktop |
| Online games | As low as possible, ideally under 50 msThere is no formal standard; game hosting guides aim low |
| Services that talk to each other | A few millisecondsRule of thumb: keep chatty services and their database in one location |
Measure from your users' side
A ping from your office says little about your visitors. Find out where your users are from your analytics, then measure from those regions:
- Use the test IP or looking glass a provider publishes for each location to run
pingandmtrfrom machines in your users' regions, ideally at different times of day. - Use a public measurement network such as RIPE Atlas to test from many networks at once.
- Compare typical values and how much they vary, not the best single result.
When you order a HyperDC server, the order form shows an estimate of the latency from your location to each data center, so you can compare locations before you choose.
Data protection and where your data lives
Where your server stands can matter legally as well as technically. Under the EU's GDPR, personal data may leave the European Economic Area only for countries with an adequacy decision or with safeguards such as standard contractual clauses. Turkey's personal data protection law, the KVKK, has its own rules for transfers abroad, including standard contracts that must be notified to the authority. Some sectors and contracts also require data to stay in a particular country.
Choosing a location inside the required region is the simplest way to meet such rules, but it is not the whole picture: backups, monitoring and support access can involve transfers too. Check your obligations with a legal adviser.
Other factors worth weighing
Connectivity
How a location connects to your users' networks matters as much as the distance on a map.
Protection
Check whether DDoS protection is included for the services that need it.
Price
The same hardware can cost a different amount in different locations.
Hardware
Not every server model is offered in every location.
Time zones
Consider when maintenance and your own working hours fall for your users.
Resilience
A second location protects you from a regional outage, if your application can fail over.
CDNs and second locations
A content delivery network caches images, scripts and other static files close to your visitors, which helps a site with a worldwide audience. Dynamic requests, such as a checkout, a search or an API call, still go to your server, so the application and its database should sit close to most of your users and close to each other.
A second location makes sense when downtime would be costly. Common patterns range from regular backups that can be restored in another region to a warm standby that can take over quickly. Each step up costs more and needs regular testing.
Choose a location in five steps
-
Map your users
Use analytics to find the countries and networks most of your traffic comes from.
-
Measure latency
Test candidate locations from those regions, several times and at different hours.
-
Check your data rules
Confirm where personal data may be stored and processed.
-
Compare plans and prices
Check which plans, hardware and protection each location offers.
-
Plan for growth and outages
Decide whether a CDN or a second location belongs in your setup.
Servers you can place in several locations
-
Linux VPS Hosting
Linux VPS Hosting grants you more control and freedom with virtual private servers, particularly suited for Linux-based projects, offering excellent performance and customization.
Starting from $3.33/mnd -
Windows VPS Hosting
Windows VPS Hosting is an ideal choice for high-performance Windows projects. It offers customization and control over your hosting environment.
Starting from $11.18/mnd -
Linux VDS Hosting
Linux VDS Hosting is scalable and high-performance, utilizing virtual dedicated servers to cater to your Linux-based projects.
Starting from $23.76/mnd -
Windows VDS Hosting
Windows VDS Hosting is perfect for customizable and high-performance hosting for Windows-based projects.
Starting from $27.81/mnd
More guides
VPS vs VDS vs dedicated server
What each term means, how to tell when you have outgrown a VPS, and when bare metal is worth it.
Learn moreChoosing a macOS server for iOS CI
Xcode and macOS versions, Apple silicon, sizing, code signing and Apple's licence rules.
Learn moreMove a website without downtime
A step-by-step plan for files, databases, DNS, SSL and email.
Learn moreDNS basics for a new domain
Nameservers, records, TTL and the email records every domain needs.
Learn moreSecure a new Linux server
The first-hour checklist: updates, SSH keys, a firewall and backups.
Learn moreFrequently asked questions
How much latency does distance add?
In theory about one millisecond of round-trip time for every 100 kilometres of fibre. Real routes are longer and usually add more.
Does a CDN make the server location irrelevant?
No. A CDN serves cached static files near your visitors, but dynamic pages and API calls still travel to your server.
Do I have to host personal data inside the EU?
Not necessarily, but transfers outside the European Economic Area need a legal basis, such as an adequacy decision or standard contractual clauses, and some sectors require local storage. Ask a legal adviser.
Can I move my server to another location later?
Yes, by setting up a server in the new location and migrating your data. Contact us and we will help you plan the move.
Which HyperDC location is closest to my users?
The order form shows an estimate of the latency from your own location to each data center. For users elsewhere, measure from their region with the test IP or looking glass a location card shows, or ask us.
Questions before you order?
Send us a message and our team will help you choose the right service.