Live data from Hacker News

So you want your app/website to work in China

chanind.github.io

171–178 of 178 posts

Re: So you want your app/website to work in China

#171
post #91

I'm Chinese. It's not that bad. * I've been hosting my Chinese blog in US vps since 2009 and it works fine. * I have Gitea hosted in US vps and it works fine too. * GoDaddy has Alipay (sort of China's PayPal) up for a long time. * ICP Licenses are easy to get (at least for Chinese) and typically take less a month. I've done it for my company's websites and my clients' websites. * ICP licenses are required only if you…

How do you manage to work during the night? External internet gets throttled so much that trying to load pages like Gitlab take minutes and a simple `git pull` can take 5 minutes. All VPNs stop working and even obscure sites like payment providers and Slack seem to only run at around 5kbps. I'm guessing it's not normal for people to work outside of 9-6?

Re: So you want your app/website to work in China

#172
post #109

Earlier quoted context omitted.

Please don't post political/national rants to HN. They are all the same, making them tedious, and they lead to flamewars, which produce even-less-interesting scorched earth. None of this serves intellectual curiosity, which is what this site is for. https://news.ycombinator.com/newsguidelines.html

I really don't understand this line of thinking.. if someone (whether it's a country, company, person) engage in evil behavior then of course we should do everything possible to dissuade others from supporting them until they change. It's possible for this site to serve intellectual curiosity without directly supporting an evil regime that put Muslims in concentration camps, engage in medical genocide (organ harvesti…

It gets simpler if you understand the purpose of this site: to gratify intellectual curiosity. If there's no new information, curiosity can't get gratified. People bashing each other with political sticks is the ultimate in no-new-information. Nationalistic arguments doubly so. And a comment like https://news.ycombinator.com/item?id=18627641 is a black hole of this kind of thing.

Here's another way to look at it: being right, such as when criticizing something evil or dumb, isn't enough. For a comment to be a good one here, it needs to lead to good conversation. A comment's value on HN is the sum of the expected values of the paths it leads to.

Re: So you want your app/website to work in China

#173
post #168

Earlier quoted context omitted.

> Hosting in China is ridiculously expensive and many Chinese go out of their way to host elsewhere If I host in Europe or US would the speed of traffic going into China be very slow? If I get a 1Gbps server in EU most likely I can serve 1Gbps to USA. Will I be able to serve 1Gbps to China from that EU server? > For 9$ a month you get 1 cpu, 1G ram and 1MBit bandwidth That is insanely expensive. How can startups in C…

Having used Alibaba Cloud for the past few years, and having been in China for the past month, I would say: > If I host in Europe or US would the speed of traffic going into China be very slow? ... Will I be able to serve 1Gbps to China from that EU server? Not sure about 1Gbps, but I've seen my 200Mbps band basically saturated. It's rather spotty though -- definitely not 200Mbps all the time. Latency is a very big p…

> so make sure you do TCP tuning right; without TCP tuning you might see awful speeds.

Any suggestions on how to tune TCP for this situation?

> I suppose it's fine if you host static assets through a CDN and only use the expensive bandwidth from compute for truly dynamic content.

Wouldn't the bandwidth cost of CDN be even higher than that of Alibaba Cloud?

Re: So you want your app/website to work in China

#174
I remain completely disgusted and confused why websites hosted on AWS S3 (in BJ) by fully registered firms with valid ICPs are still banned. I have to use 10x the computing power that I need and I could load additional tools in its place. That and the lack of AWS Amplify being offered really crushes innovation here. (Shanghai based entrepreneur)

Re: So you want your app/website to work in China

#175
post #168

Earlier quoted context omitted.

Having used Alibaba Cloud for the past few years, and having been in China for the past month, I would say: > If I host in Europe or US would the speed of traffic going into China be very slow? ... Will I be able to serve 1Gbps to China from that EU server? Not sure about 1Gbps, but I've seen my 200Mbps band basically saturated. It's rather spotty though -- definitely not 200Mbps all the time. Latency is a very big p…

> so make sure you do TCP tuning right; without TCP tuning you might see awful speeds. Any suggestions on how to tune TCP for this situation? > I suppose it's fine if you host static assets through a CDN and only use the expensive bandwidth from compute for truly dynamic content. Wouldn't the bandwidth cost of CDN be even higher than that of Alibaba Cloud?

> Any suggestions on how to tune TCP for this situation?

Roughly speaking, TCP throughput is window size / latency, and the default window size on Linux is usually pretty small, so for high latency connections (US to CN roundtrip is usually several hundred ms) the throughput would be bad. Increasing TCP buffer sizes goes a long way. In addition to buffer sizes, finer tuning is possible via other options/parameters; just find a guide online, there are plenty.

> Wouldn't the bandwidth cost of CDN be even higher than that of Alibaba Cloud?

Hmm, shouldn't CDNs for static assets be cheaper than bandwidth associated with compute instances in general? For instance, Alibaba Cloud's CDN offering starts at $0.04/GB (in Mainland China) for the first 50TB, and gradually decreases from there.[1]

[1] https://www.alibabacloud.com/product/cdn/pricing

Re: So you want your app/website to work in China

#176
post #112

Earlier quoted context omitted.

you're greatly underestimating the number of opinionated HNers there are if you think the number of comments can only be explained by bots :-P and also, 6/4/1989 you bootlicker

If you attack another user like that again, we will have to ban you, so please don't. You've mostly been a good commenter, so that shouldn't be hard. https://news.ycombinator.com/newsguidelines.html

sounds good, fair judgement

Re: So you want your app/website to work in China

#177
post #91

I'm Chinese. It's not that bad. * I've been hosting my Chinese blog in US vps since 2009 and it works fine. * I have Gitea hosted in US vps and it works fine too. * GoDaddy has Alipay (sort of China's PayPal) up for a long time. * ICP Licenses are easy to get (at least for Chinese) and typically take less a month. I've done it for my company's websites and my clients' websites. * ICP licenses are required only if you…

How do you manage to work during the night? External internet gets throttled so much that trying to load pages like Gitlab take minutes and a simple `git pull` can take 5 minutes. All VPNs stop working and even obscure sites like payment providers and Slack seem to only run at around 5kbps. I'm guessing it's not normal for people to work outside of 9-6?

I honestly don't notice a big difference, plus my self-hosted VPN still works as fast. So I guess a reliable VPN is the answer.

Re: So you want your app/website to work in China

#178

Earlier quoted context omitted.

How do you manage to work during the night? External internet gets throttled so much that trying to load pages like Gitlab take minutes and a simple `git pull` can take 5 minutes. All VPNs stop working and even obscure sites like payment providers and Slack seem to only run at around 5kbps. I'm guessing it's not normal for people to work outside of 9-6?

I honestly don't notice a big difference, plus my self-hosted VPN still works as fast. So I guess a reliable VPN is the answer.

Perhaps my issue is that my VPN is hosted in a common place like DigitalOcean. Maybe a lesser known host is the trick?
Post reply on HN