Simple comprehension
A more detailed description
- Agent
For example, client C needs to access site B, but because B is wall, C cannot be accessed directly, but there is another intermediate client p, he can turn over the wall, can access the B site. So there is a solution: C sends a request to the B site to P, then p then forwards the request to B, and finally p returns the result of the B site to C. This is the p in the intermediary, Agent role, so p is called agent.
- Reverse Proxy
Client C needs to access the B site, although C can directly access B, but B's developers for the B site's data security and take into account the load balance, and so on, want to set up a intermediate service p before B, the service receives all external customers come over the request, These requests are then distributed to one of the B Web servers behind it by the load balancing algorithm, and the pages returned by that server are returned to the customer. Now the case is that C's original intention to access B, but in fact it directly accesses a reverse proxy p, but this proxy agent is the server processing its request.
Proxy and Reverse Proxy