Hey there :),
Hope you all are having a good day. Let us talk about reverse proxies and understand what it is?
To understand reverse proxy one must understand what Proxy server actually is, so below is a brief and simple explanation for you.
Proxy Server: This is the server which sits right in the middle of user and origin server. Its task is to take request from user and redirect it to appropriate server. Simple enough?
User 1 -------> | |<---------> Origin Server 1
User 2 ------ > | <------->Proxy<------>|<---------> Origin Server 2
User 3 -------> | |<---------> Origin Server 3
There are 2 types of proxy servers :
1. Forward proxy
2. Reverse proxy
1. Forward proxy- This proxy serves sits on client side(e.g. browser) and direct to the request to right origin server coming from client and then it will receive the response and pass it to the user.
Usage: 1) Govt or Private or Limited access servers can have this kind of proxy to secure the original server IP.
2) It can be used to maintain anonymity online since the original server IPs are always safe and hidden.
1. Reverse proxy- Finally what we all have been waiting for... Reverse Proxy. So there is subtle difference between forward and reverse proxies and that difference is:- Unlike forward proxy, reverse proxy lies just in front of all the original servers, That way a request coming from client(user) will be handled by reverse proxy server and then proxy server will decide which origin server will serve this request. Then it simply redirect the request to origin server-> take the response from origin server-> return the response to the user.
There are many advantaged of this kind of architecture the most important ones are:
1) It saves origin servers from DoSS attacks(impacts only proxy server).
2) It can be used as load balancing
3) It can be used as Global server load balancing (to balance based on appropriate geolocation).
4) Caching, this can cache previous request and their redirections, making the redirection really fast.
Comments
Post a Comment