Knowledge point 037-forward proxy and reverse proxy

forward proxy

Student A started his entrepreneurial journey under the background of the era of mass entrepreneurship and innovation. One of the biggest problems he encountered at present was the start-up capital, so he decided to borrow money from Jack Ma's father. A grey nose came back. In a hurry, he thought of a way to find a relationship to open the back door. After some inquiries, it turned out that Mr. Wang, the university teacher of classmate A, was a classmate of Ma Yun, so classmate A found Mr. Wang and asked Mr. Wang to help him. Ma Yunna borrowed 5 million to come over, of course, it finally happened. However, Jack Ma didn't know that the money was borrowed by classmate A. Ma Yun lent it to Mr. Wang, and finally Mr. Wang handed it over to classmate A. Mr. Wang here plays a very key role in this process, that is, the agent , or it can be said to be a positive agent. Mr. Wang does this on behalf of classmate A. In this process, who is the real borrower, Jack Ma I don't know, this is very important.

The proxy we often say is only forward proxy, the process of forward proxy, which hides the real request client, the server does not know who the real client is, and the services requested by the client are replaced by the proxy server to request , the well-known scientific online tool shadowsocks plays a typical forward proxy role. When I used a browser to access www.google.com in China, I was brutally rejected, so you can build a proxy server abroad, let the proxy help me to request google.com, and the proxy will return the corresponding structure of the request to I.

reverse proxy

Everyone has had this experience, calling 10086 customer service, there may be several or dozens of 10086 customer service in a region, you never need to care which one is on the other end of the phone, what is it called, male or female Yes, beautiful or handsome, you don't care, what you care about is whether your questions can be answered professionally, you just need to dial the switchboard number 10086, there will always be someone on the other end who will answer you, but sometimes Slow and sometimes fast. Then the switchboard number 10086 here is what we call a reverse proxy . Customers don't know who is really providing the service.

The reverse proxy hides the real server. When we request www.baidu.com, it's like dialing 10086. There may be thousands of servers behind it serving us, but you don't know which one it is. , you don't need to know, you just need to know who the reverse proxy server is. www.baidu.com is our reverse proxy server, and the reverse proxy server will help us forward the request to the real server. Nginx is a reverse proxy server with very good performance, which is used for load balancing.

The difference between the two is that the objects of the proxy are different: the object of the forward proxy is the client, and the object of the reverse proxy is the server

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325298693&siteId=291194637