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.



文献鸟 618 大优惠


写作助手,把中式英语变成专业英文


AI writing papers with real references


Want to receive new post notification? 有新文章通知我

带你两分钟了解文献鸟Stork高级功能

“ 618优惠:从6月1日到6月18日晚上,学术界个人年度会员(全套餐)价格优惠到  8,998 3,999元。 ” 文献鸟Stork高级功能简介 Stork(文献鸟) 是一套由斯坦福大学科
Wanling Zhu
14 sec read

Over 80 Scientific Papers Have Cited Stork

TL;DR Stork has now been cited in 82 scientific papers, from 7 countries and more than 40 universities and research institutions. And the pace is picking up: nearly a quarter of those citations arrived in just the past eight months. Thank you for mak
Wanling Zhu
2 min read

文献鸟已经被 80 余篇科学论文引用

懒人总结 截至2026年6月,文献鸟已经被82篇科学论文正式引用,覆盖7个国家、40余家高校和科研机构。过去8年积累了60篇引用,而最近8个月又新增了20篇,越来越多研究团队正在将文献鸟应用于真实科研
Wanling Zhu
29 sec read

One Reply to “Where to put your web server if your users…”

Leave a Reply

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