I recently considered starting my own business. When building a website, due to the special domestic conditions, I decided to put the website abroad. However, the latency of foreign hosts is relatively high and not very stable. After consulting domestic cloud hosts, I learned that as long as the purchased cloud The host only needs IP and does not need to be registered, and the port is not blocked. The current thinking is as follows:
Consider pointing the domain name to a foreign country, and from the foreign country to the domestic cloud host through nginx proxy or load,
But one thing is not clear. nginx has multiple load methods. So when a user accesses, does the data processed by the nginx back-end server directly return to the client, or does nginx return the processed data to the client again?
How to write the load configuration file?
I considered CDN, but it was too expensive to use.
既然是创业,面向国内市场,不建议把服务器部署在国外。你创办公司工商注册都做了,怎么还会嫌备案麻烦。。。
这样做反向代理延迟更大,假设你连接到国外服务器100ms,国外服务器连接到阿里云也需要100ms,总的响应时间会大于200ms