1

I live in Brazil and I'm planning on hosting my website in either DreamHost or Digital Ocean, which don't have any servers in my country. Will that affect the loading speed of my site?

Thanks!!!

6

The speed of light is 299 792 458 m/s. The circumference of Earth is 40 075 000 m. This means that if the data center is at the opposite side of the Earth, the delay will be at least 0.067 s., that is 67 ms. Noticeable for critical applications where every millisecond counts, such at the home page of Google or a financial sector app; not noticeable for a personal blog or a forum.

The closest Amazon data center, for instance, would be probably in Jacksonville, Florida, USA. The distance is approximately 6 000 km to the center of Brazil (if you're in the south of Brazil, you're out of luck), which translates into 20 ms.

You should also take in account that the time the packets are spent traveling through routers, which may increase the waiting time, and that they hardly travel in a straight line. This being said, the additional time is still probably not too much for an ordinary website.

Conclusion: if the hosting company has several data centers around the world (such as Amazon AWS), hosting a web app in geographical proximity to the customers can be nice. But for most web apps, it's not what will make a radical change in the perceived speed of your app.

  • I'm actually in Northern Brazil! And Amazon does have a data center in Sao Paulo. I just find it too hard to set up an Amazon server as compared to other hosting companies. – newbie Feb 11 '15 at 1:32
  • @newbie: Amazon documentation is very complete, but indeed can be a bit overwhelming. Still, both Microsoft Azure and Amazon EC2 are worth ones time. Make sure to check other cloud computing providers (Rackspace comes in mind, although there are plenty of others). Finally, if you have a specific problem, don't forget ServerFault (but make sure to check if the question is on-topic). – Arseni Mourzenko Feb 11 '15 at 1:42
2

Yes, it matters. The signals may travel at light speed (or a reasonable fraction) but there are many rest stops called routers along the way. Your data gets stopped, buffered, and stuffed down another pipe, competing with other traffic for bandwidth. The fewer routers in the path, and the fatter the pipes, the better your site will load.

That said, unless your site is a twitch-level shooter, or you're sending gigabytes of data, your users probably won't notice. The main thing that matters will be the bandwidth available from your actual host. Cheap connections may not provide much (you get what you pay for).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.