代理与反向代理 Proxy VS Reverse Proxy
Proxy
Proxy handles the requests from clients and forwards the requests to servers.
Benefits:
- Privacy, protecting their own identity online
- Bypassing state or institutional restriction
- VPN?
- To block access from restricted content
Reverse Proxy
The difference between a forward and reverse proxy is subtle but important. A simplified way to sum it up would be to say that a forward proxy sits in front of a client and ensures that no origin server ever communicates directly with that specific client. On the other hand, a reverse proxy sits in front of an origin server and ensures that no client ever communicates directly with that origin server.
The difference between proxy and reverse proxy is subtle. The forward proxy is located in front of a client and ensures that no server directly communicates with the clients. While the reverse proxy ensures the server does not interact with other clients directly.
Below are some benefits of reverse proxy:
- Load Balancing.
- Traffic Load Balancing can distribute the traffic evenly among servers. DNS load balancing: we can also leverage the reverse proxy to handle multiple domains.
- Global Server Load Balancing (GSLB), the reverse proxy can send the client's requests to geographically closest servers.
- Server Protection.
- With a reverse proxy in place, a website or service never needs to reveal to reveal the IP address of its origin server(s).
- Caching.
- The proxy caches the servers' content and responses, resulting in better performance.
- SSL Encryptions:
- Encryption and Decryption are computationally expensive. A proxy can be configured to decrypt all the incoming requests and encrypt all the outgoing responses, freeing up valuable resources on the origin server.
How to implement Reverse Proxy?
One of the easiest and most cost-effective ways to reap all the benefits of a reverse proxy is by signing up for a CDN service. For example, the Cloudflare CDN provides all the performance and security features listed above, as well as many others.