Where to put your web server if your users are in both US and China?

1 min read

Our literature altert app Stork has many users in US and China. Our server is located in US West (silicon valley), and it’s been fast. But recently we got more and more complaints from China users that it’s slow to load our website and sometimes the connection even failed.

We need to find a solution. There are a few options, from easy to difficult:

  1. We can migrate the server to a location where both China and US users can access reasonably fast. Still single server and the same domain name.
  2. We can have one server in mainland China (say Beijing) serving China users only, and the US server to serve the rest of world. We use the same domain name but make it “smart” so it redirects users to the appropriate server.
  3. Similar to #2, but we use two different domain names, one for China and the other for the rest of the world.

Obviously option 1 is most attrative – if we can find such a location. To this end, we created 8 test servers in different locations and test the connection from US West and China (Beijing). Here is the result:

Latency to 8 servers

And the same data in a table (numbers are latency in seconds):

Server LocationFrom US WestFrom Beijing
US West0.839.0
US West4.332.3
US West0.134.5
China (Beijing)737.14.4
Local0.10.1
Hong Kong3.40.7
China (Beijing) 22.00.1
Sigapore1.32601.7
Tokyo0.71104.0

We can see that the connection from China to most other countries is very slow, and connection from US to most other countried are fast except to China. So internet wise, China and US are practically disconnected!

The latency between China and US (West) is dependent on time.

The latency between China and US (West) is dependent on time. In the plot above, you can see that the latency is actually fairly small during the night time in China (note that the unit of the time in the above plot is UTC). The variation of latency suggests that we can’t measure the connection speed just at one time point.

But there is one exception which gives us hope. It’s Hong Kong! Its connection to Beijing is fast, and to US is reasonable. So it’s a good choice to choose Hong Kong. Actually we did this and the result is pretty good. Both our China users and users from other regions can access our website reliably and reasonably fast.

So if you have a significant number of users or customers in China, you may consider to host your web server in Hong Kong.


Receive email notification via email 博客有新内容通知我
文献鸟,永远不错过新文献!

Don't want to miss new papers in your field? Check out Stork we developed:


What can Big Analysis tell you?

We have recently updated the “Big Analysis” advanced feature of Stork. We added the option of analyzing middle authors, the option to merge different...
Xu Cui
46 sec read

Is AI able to write papers?

As researchers, we all have a dream: it would be fantastic if AI could write papers one day! This sounds like a science fiction,...
Xu Cui
3 min read

人工智能已经强大到能写论文了?

作为科研人员,我们都有个梦想,如果有一天AI可以帮我写论文就太好了!这听上去好像是遥远的科幻,不过,当我使用了文献鸟Stork的新高级功能“人工智能创意论文摘要”后,我觉得,这一天马上就要来了。 为了看看人工智能有多厉害,我随便想了个有意思的主题,就是人和宠物狗之间的欺骗行为的大脑机制。这是一个还没有被研究的课题,到现在为止还没有人同时测量过一个人和他的宠物狗的大脑,当然也没有文章发表。我有这个想法已经有一段时间,但还是个模糊的想法,具体怎么实现以及结果怎样我也不知道。于是,我看看人工智能会写出什么。于是我输入了: Deception between human and pet dog, an fNIRS hyperscanning study 点击“开始”按钮后,人工智能好像想了几秒钟,然后文字便源源不断地出现了。 The present study aimed to investigate the neural correlates of deception...
Xu Cui
1 min read

Leave a Reply

Your email address will not be published. Required fields are marked *