I am wondering how the distributed traffic of a website is balanced. For example, I have a website with a single domain name (www.foo.com) and, presumably, it is configured as three web servers in the USA, EU and Asia separately. When the end user is in the USA, I want the user to access the physical US web server when he requested www.foo.com in his browser. When the end user is in the EU, I want the user to have access to the physical EU web server. And similarly for Asia. The advantage is that the end user can access the nearest server, which will give better performance.
I believe that most large and distributed websites are implemented in this way, such as Google. I wonder how this is implemented domestically? In more detail, how is the magic of finding the nearest server implemented?
source
share