A proxy server is an intermediate piece of software or hardware that sits between the client and the server. Clients connect to a proxy to make a request for a service like a web page, file, or connection from the server.
GET DISCOUNT ON SCALER FEE - Anyone who wants to join Scaler can get in touch with me here for further help and get great discount on fee- https://forms.gle/LZtZsae52mKp1CbP6 Or can connect with me on
LinkedIn
/ rishi-prakash-developer
Instagram
/ rishi.prakash.barawal
Facebook
/ barawal.rishi
Medium
/ studywithrishi
What is a proxy server?
A proxy server is an intermediate piece of software or hardware that sits between the client and the server. Clients connect to a proxy to make a request for a service like a web page, file, or connection from the server.
Here are two kind of Proxy Servers
1. Forward Proxy
a Forward proxy server is a piece of software or hardware that facilitates the request for resources from other servers on behalf of clients, thus anonymizing the client from the server.
Typically, forward proxies are used to cache data, filter requests, log requests, or transform requests (by adding/removing headers, encrypting/decrypting, or compressing a resource).
A forward proxy can hide the identity of the client from the server by sending requests on behalf of the client.
2. Reverse Proxy
A reverse proxy retrieves resources from one or more servers on behalf of a client. These resources are then returned to the client, appearing as if they originated from the proxy server itself, thus anonymizing the server. Contrary to the forward proxy, which hides the client’s identity, a reverse proxy hides the server’s identity.
In most of the cases, API Gateway will be used to act as "reverse Proxy" server. A reverse proxy can also call to multiple API servers, compose their results in to one bundle and return back to client. This is called API composition.
let's take an example of Instagram here.
let's take another example
In this diagram we see that the reverse proxy hides the final server that served the request from the client. The client makes a request for some content from facebook.com; this request is served by facebook’s reverse proxy server, which gets the response from one of the backend servers and returns it to the client.
A reverse proxy, just like a forward proxy, can be used for caching, load balancing, or routing requests to the appropriate servers.
What is the difference between Load Balancer and Reverse Proxy
A reverse proxy accepts a request from a client, forwards it to a server that can fulfill it, and returns the server's response to the client. A load balancer distributes incoming client requests among a group of servers, in each case returning the response from the selected server to the appropriate client.
Summary
A proxy is a piece of software or hardware that sits between a client and a server to facilitate traffic. A forward proxy hides the identity of the client, whereas a reverse proxy conceals the identity of the server. So, when you want to protect your clients on your internal network, you should put them behind a forward proxy; on the other hand, when you want to protect your servers, you should put them behind a reverse proxy.
Proxy vs Reverse Proxy vs LB | 10 Min System Design #whatisproxy #proxyvsreverseproxy #loadbalancer
#whatisproxy #proxyvsreverseproxy #loadbalancer
proxyvsreverseproxy,whatisaproxy,what is proxy server,what is reverse proxy ser,proxy server explained,what is a load balancer,reverse proxy vs load balancer,proxy server vs reverse proxy vs load balancer,reverse proxy vs forward proxy,reverse proxy and forward proxy,difference between reverse proxy and forward proxy,forward proxy and reverse proxy difference,forward proxy vs reverse proxy,reverse proxy,what is load balancer