I have searched several places to understand the exact difference. This is the best video tutorial i have ever seen till date. Hats off to the media. Also all the other informations shared by this channel is worth watching and is unmatched
WOW! You just earned yourself another subscriber. I have been trying to understand the concept of forward proxies for months, and after many tutorials and articles you finally explained it in a way that I understood. My confusion was what the hell a forward proxy was, and I never thought that your ISP or wifi network is the proxy server. Of course I already understood the reverse proxy for things like load balancers and caching, but now I understand both. Thanks again
That was a super well made video! I was setting up a permanent Plex server but I kept on hearing that, for a bunch of different Servarr applications, you needed to set up a reverse proxy. Now I finally get why that's the case!
Very clear explanation, this topic can be so confusing when going details. But your simplistic approach make the concept very understandable. Very nice work 👏🏽👏🏽👏🏽
Back in 2010, I was a webmaster of a portal whose some pages had to be served by a Tomcat server. So, I had to set a reverse proxy in my Apache24 server so that the requests for those pages would be properly forwarded to Tomcat.
Hi Kaushik, great content as always. But having a single reverse proxy means that if that server goes down then the end user can't access your services (Single point of failure). How do you make sure it's taken care of. Do we have multiple reverse proxies! I know forwarding requests and load balancing is not as processor intensive as actually serving those requests but still I think something like this can happen and your reverse proxy server can go down. What do you do in that scenario?
With things like load balancers and reverse proxies, high availability is handled differently. You basically have active and passive servers with a hearbeat mechanism to make sure the reverse proxy is up, and the instant it goes down, you automatically switch to the passive reverse proxy and reroute the network so that the failing proxy isn't being routed to. This HAS to be done because if we were to run multiple reverse proxies running active at the same time, you'd need another reverse proxy to load balance between them, and the problem repeats!
Kaushik you're really awesome...the way you explain all topics is really different, and I really love the way you explain the mindset (from development team and user's perspective) behind each and every subject/topic/tech.
The video also mentions about it @8:25. Looks like a gateway is an example of reverse proxy: An API gateway sits between clients and services. It acts as a reverse proxy, routing requests from clients to services. It may also perform various cross-cutting tasks such as authentication, SSL termination, and rate limiting. If you don't deploy a gateway, clients must send requests directly to front-end services. Source: docs.microsoft.com/en-us/azure/architecture/microservices/design/gateway#:~:text=An%20API%20gateway%20sits%20between,directly%20to%20front%2Dend%20services.
So, If reverse proxy is also acts as load balancing.. Then can we configure external load balancer with reverse proxy ? As I have seen in AWS ElasicBeanstalk can be configure with LB and reverse proxy.. But didn't understand the use of both.. Can anyone help me for this understanding ?
What I understood was forward proxy is forwarding an request to single server where as reverse proxy is used in a scenario where multiple servers are there correct me if i am wrong
Well, there are multiple clients and multiple servers, so multiples on both sides. Forward proxy is associated with clients and reverse proxy with servers, like I mention in the video.
@@Java.Brains okay but then in the diagram at 06:39 why you used reverse proxy in between outside world and group of servers it has to be among servers only na I found same diagram in both forward proxy and in reverse proxy I am confused
I'd recommend the two diagrams I explain starting at 5:54. But yes, you are right. The reverse proxy is usually the gateway server among servers. The request could be coming from anywhere, any client or a forward proxy.
why does not a proxy can work as Load balancer and API gateway , its between client and server whereas reverse revers proxy is between a server and client .. reverse way , as i understood .. what is need to load balance there .. asa its going to client from the server
Kaushik you truly changed my life!! The reason i could understand Java the way i do is all because of you Thank you!
Thank you for your comment! :)
@@Java.Brains Si
I have searched several places to understand the exact difference. This is the best video tutorial i have ever seen till date. Hats off to the media.
Also all the other informations shared by this channel is worth watching and is unmatched
Brevity , Clarity and Simplicity -> Thanks , now i have understood it well.
i never used to comment on tutorial videos like this , here is one worth commenting..
Your explanation skills are really good.. way better than anyone else teaching on RUclips
Kaushik you are simply great. The way you teach is awesome. I love you.
WOW! You just earned yourself another subscriber. I have been trying to understand the concept of forward proxies for months, and after many tutorials and articles you finally explained it in a way that I understood. My confusion was what the hell a forward proxy was, and I never thought that your ISP or wifi network is the proxy server. Of course I already understood the reverse proxy for things like load balancers and caching, but now I understand both. Thanks again
you are gem.. you explain in simple language with which even freshers can understand :) thanks for your efforts.
Done thanks!
Proxy sits between the client and the server
The way you explain the concepts are awesome and easily understandable. Keep up the great work!
Thanks Kaushik, the clearest explanation ever on that topic. Awesome
That was a super well made video! I was setting up a permanent Plex server but I kept on hearing that, for a bunch of different Servarr applications, you needed to set up a reverse proxy. Now I finally get why that's the case!
In concludion:
Forward proxy==school or corporate network
Reverse proxy==nginx
its the best ever explanation of proxy that i could find. Great job (Y)
Very clear explanation, this topic can be so confusing when going details. But your simplistic approach make the concept very understandable. Very nice work 👏🏽👏🏽👏🏽
Beautifully explained, short concise and simple.
Thanks, Kaushik. I think even Service Registry(Eg Eureka) uses the concept of a reverse proxy.
Back in 2010, I was a webmaster of a portal whose some pages had to be served by a Tomcat server. So, I had to set a reverse proxy in my Apache24 server so that the requests for those pages would be properly forwarded to Tomcat.
Thank you very much. This video helped me to know the use case and the differences between the both proxy types.
thank you so much, dude.
keep uploading these kinds of videos.
they are very helpful.
think you man ...im gonna take my security + exam this week
Great intro, it actually pulled me in to watch the rest.
Good job, no wasted chatter.
Thats an amazing introduction to Proxy definition!
Very simple and clear explaination. Thank you so much
Hi....when is your docker course coming out ?? Eagerly waiting for it :)
Very nice and clear presentation. Thank you :)
Start won me over :)
Would you consider making videos about different design patterns?
Super, clear explanation , awesome 😊
Thank you for a great explanation of these two concepts.
superb... second episode came so quickly...
Yup, I'll try to post more regularly
@@Java.Brains I feel like meeting you sometime... and thank you in person... I am really thankful to you for all your tutorials...
Hi Kaushik, great content as always. But having a single reverse proxy means that if that server goes down then the end user can't access your services (Single point of failure). How do you make sure it's taken care of. Do we have multiple reverse proxies! I know forwarding requests and load balancing is not as processor intensive as actually serving those requests but still I think something like this can happen and your reverse proxy server can go down. What do you do in that scenario?
With things like load balancers and reverse proxies, high availability is handled differently. You basically have active and passive servers with a hearbeat mechanism to make sure the reverse proxy is up, and the instant it goes down, you automatically switch to the passive reverse proxy and reroute the network so that the failing proxy isn't being routed to.
This HAS to be done because if we were to run multiple reverse proxies running active at the same time, you'd need another reverse proxy to load balance between them, and the problem repeats!
Wow what a topic taken by u. Please take more server related topic like loadbalancer, https, websocket etc.... Really like ur video 👍
Sure I will
@@Java.Brains thank you koushik, I got a job thanks to your videos. I take the lessons you teach to my heart
Kaushik you're really awesome...the way you explain all topics is really different, and I really love the way you explain the mindset (from development team and user's perspective) behind each and every subject/topic/tech.
Please cover Cloud infrastructures as well. Myself became fan of your channel.
Great video loved the way u explained things
Glad you liked it
great job, very clear to understand
Thanks for sharing knowledge, may I assume api gateways are use case of reverse proxy?
Amazing explanation 👏 thank you
Very well explained. Thanks
So easy to understand and detailed. Subbed!~
As always great video and simple and understandable explanation
The name should be changed to programming Brains instead of Java Brains. Thanks Kaushik for your new video
Koushik you're fab!
Very well explained👌 Thank you🙏
Nice explanation of all that. Thanks
Hey ! What's difference between reverse proxy and API gateway ? From your explanation, they both seem to be same
I have the same question. Or is an API gateway an example of reverse proxy? Were you able to find out?
The video also mentions about it @8:25.
Looks like a gateway is an example of reverse proxy:
An API gateway sits between clients and services. It acts as a reverse proxy, routing requests from clients to services. It may also perform various cross-cutting tasks such as authentication, SSL termination, and rate limiting. If you don't deploy a gateway, clients must send requests directly to front-end services.
Source: docs.microsoft.com/en-us/azure/architecture/microservices/design/gateway#:~:text=An%20API%20gateway%20sits%20between,directly%20to%20front%2Dend%20services.
Nicely explained.
Clear and concise
Very well explained. So neat. Thanks.
Really good explanation, thank you for sharing this very nicely integrated knowledge!
nice explanation.
Thanks kaushik sir.
Very clear explanation Thanks a lot
Glad it helped
fucking well explained unlike many other channels which just want to complicate the concept
Brilliantly explained !!
Thanks Kaushik!
clear explanation
Thanks for sharing
Thanks :) Useful video
Great video, many thanks.
thank youuuu
video that made me stop google "what is reverse proxy"
I loved it, thank you.
great video!
Are there any plans to teach Microservices Architectural Patterns?
What is the difference between load balancing server , api gateway and reverse proxy?
Can we say that needing only one public IP is a valid advantage of a reverse proxy?
thanks!
thanks bro
You are the best
So what exactly is the difference between a gateway and a proxy server
Thanks!
So, If reverse proxy is also acts as load balancing.. Then can we configure external load balancer with reverse proxy ? As I have seen in AWS ElasicBeanstalk can be configure with LB and reverse proxy.. But didn't understand the use of both.. Can anyone help me for this understanding ?
If you want to learn java, spring, jpa, micro services, who is better in this planet than java brains.
What iS difference between nat gateway and proxy?
What I understood was forward proxy is forwarding an request to single server where as reverse proxy is used in a scenario where multiple servers are there correct me if i am wrong
Well, there are multiple clients and multiple servers, so multiples on both sides. Forward proxy is associated with clients and reverse proxy with servers, like I mention in the video.
@@Java.Brains okay but then in the diagram at 06:39 why you used reverse proxy in between outside world and group of servers it has to be among servers only na I found same diagram in both forward proxy and in reverse proxy I am confused
I'd recommend the two diagrams I explain starting at 5:54. But yes, you are right. The reverse proxy is usually the gateway server among servers. The request could be coming from anywhere, any client or a forward proxy.
😂 very smart that proxy college concept
why does not a proxy can work as Load balancer and API gateway , its between client and server
whereas reverse revers proxy is between a server and client .. reverse way , as i understood .. what is need to load balance there .. asa its going to client from the server
Can you make a video on OSI model
The example with Gmail is misleading. That goes against TLS which assures end to end encryption.
Not really. The proxy would just tunnel TLS though it. End to end encryption still works with proxies.
TLS will be client to proxy and proxy to gmail server
@@Java.Brains does it mean the proxy has user credentials/or session keys?
what’s about https
Hey your voice sounds like that of Sundar Pichai!
lol