Question background: a common file uploading web, a customer in America, through the browser to upload the file to the territory of China in the server,
Assuming that A and B have two servers, including A server installed Nginx, inside proxy_pass to server B, B server installed tomcat, used to receive A proxy server to the data,
Configure the following
The location/{
Proxy_pass http://B server's IP address;
}
Now there are two solutions:
Solution A: the server of A and B in the territory of China in the same room, proxy_pass is through the network communication between A and B (internal network IP address),
Scheme 2: put A server in the United States in A computer room, server B put in A room within the territory of China, the proxy_pass between A and B is communication through the network (public IP address),
Generally speaking, everyone is to use one way,
But due to the business problem, we must choose scheme ii, but on performance, upload time, security, etc., don't know whether to have good,
So could you please tell me,
each masterUpload files in the same, the same network, some under the same premise condition of '
1, plan and scheme 2, transfer to the same time? Difference is very big or very small? The reason of the difference in where?
2, the second scheme on the performance of very poor? What are the main reasons that (roughly)
Safety of 3, 2, there are problems? (general file, nothing special confidential files)
4, you recommend the use of 2?
Thank you very much,
CodePudding user response:
Seek expert advice, thank you!CodePudding user response:
Seek expert advice, thank you!