Forward proxy vs reverse proxy difference explained - Brain Bytes (Java Brains)

Поділитися
Вставка
  • Опубліковано 8 вер 2024
  • You hear these two terms a lot - forward proxy and reverse proxy, especially when you are working with backend systems. Proxy servers. And reverse proxy servers. Are they the same? If not, how are they different? In this video, I'll break this down and give you a very clear idea, with examples, of what a proxy is, what a reverse proxy is, and how they are different.
    Java Brains website: javabrains.io
    #JavaBrains #BrainBytes #WhatIs #Java #Tutorial #Concept

КОМЕНТАРІ • 102

  • @MadhuSudhanpro
    @MadhuSudhanpro 3 роки тому +45

    Kaushik you truly changed my life!! The reason i could understand Java the way i do is all because of you Thank you!

  • @Ajith4u81
    @Ajith4u81 3 роки тому +4

    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

  • @rajd2792
    @rajd2792 Рік тому

    Brevity , Clarity and Simplicity -> Thanks , now i have understood it well.

  • @Youvidya
    @Youvidya 3 роки тому +3

    you are gem.. you explain in simple language with which even freshers can understand :) thanks for your efforts.

  • @mostinho7
    @mostinho7 Рік тому +1

    Done thanks!
    Proxy sits between the client and the server

  • @VladislavChernykh43
    @VladislavChernykh43 3 роки тому +2

    Thanks Kaushik, the clearest explanation ever on that topic. Awesome

  • @asjjain191183
    @asjjain191183 3 роки тому +3

    Kaushik you are simply great. The way you teach is awesome. I love you.

  • @arv1ndvlogs
    @arv1ndvlogs 3 роки тому +8

    The way you explain the concepts are awesome and easily understandable. Keep up the great work!

  • @charleslamb5810
    @charleslamb5810 2 роки тому +1

    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

  • @niharika572
    @niharika572 Місяць тому

    its the best ever explanation of proxy that i could find. Great job (Y)

  • @yrusTube
    @yrusTube 2 роки тому +1

    Beautifully explained, short concise and simple.

  • @danthe1st
    @danthe1st 3 роки тому +10

    In concludion:
    Forward proxy==school or corporate network
    Reverse proxy==nginx

  • @MrAJ-em3ue
    @MrAJ-em3ue Рік тому

    i never used to comment on tutorial videos like this , here is one worth commenting..

  • @HappyBoySidd
    @HappyBoySidd 3 роки тому

    Your explanation skills are really good.. way better than anyone else teaching on UA-cam

  • @moodeylol3
    @moodeylol3 3 роки тому +1

    think you man ...im gonna take my security + exam this week

  • @ezekielkoontz5267
    @ezekielkoontz5267 3 роки тому +1

    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!

  • @Abdullah-Alhariri
    @Abdullah-Alhariri 3 роки тому +2

    thank you so much, dude.
    keep uploading these kinds of videos.
    they are very helpful.

  • @cangurdal9264
    @cangurdal9264 Рік тому

    Very clear explanation, this topic can be so confusing when going details. But your simplistic approach make the concept very understandable. Very nice work 👏🏽👏🏽👏🏽

  • @songadal8119
    @songadal8119 3 роки тому +3

    Thank you very much. This video helped me to know the use case and the differences between the both proxy types.

  • @Matthieufleere
    @Matthieufleere 3 роки тому +2

    Very nice and clear presentation. Thank you :)

  • @farrukhijaz
    @farrukhijaz 3 роки тому +4

    Start won me over :)

  • @vtreanor
    @vtreanor 2 роки тому

    Good job, no wasted chatter.

  • @caty863
    @caty863 10 місяців тому

    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.

  • @danieleskyline
    @danieleskyline 2 роки тому

    Very simple and clear explaination. Thank you so much

  • @skullwise
    @skullwise 3 роки тому +1

    Thanks, Kaushik. I think even Service Registry(Eg Eureka) uses the concept of a reverse proxy.

  • @foruvasanth
    @foruvasanth 2 роки тому

    Thats an amazing introduction to Proxy definition!

  • @nojerome497
    @nojerome497 2 роки тому

    Great intro, it actually pulled me in to watch the rest.

  • @anzarsainudeen8806
    @anzarsainudeen8806 Рік тому

    Super, clear explanation , awesome 😊

  • @ashishsadana1365
    @ashishsadana1365 3 роки тому +2

    superb... second episode came so quickly...

    • @Java.Brains
      @Java.Brains  3 роки тому +1

      Yup, I'll try to post more regularly

    • @ashishsadana1365
      @ashishsadana1365 3 роки тому

      @@Java.Brains I feel like meeting you sometime... and thank you in person... I am really thankful to you for all your tutorials...

  • @mickeandersson6467
    @mickeandersson6467 Рік тому

    Thank you for a great explanation of these two concepts.

  • @SubtleAsh-TheImmortal
    @SubtleAsh-TheImmortal 2 роки тому

    Koushik you're fab!

  • @brianmisasa
    @brianmisasa 7 місяців тому

    Clear and concise

  • @mahdi5796
    @mahdi5796 8 місяців тому

    Very well explained. Thanks

  • @ankitkanyal8392
    @ankitkanyal8392 3 роки тому +3

    Great video loved the way u explained things

  • @sundaramjha1776
    @sundaramjha1776 3 роки тому +2

    Wow what a topic taken by u. Please take more server related topic like loadbalancer, https, websocket etc.... Really like ur video 👍

    • @Java.Brains
      @Java.Brains  3 роки тому +4

      Sure I will

    • @zidrexandag06
      @zidrexandag06 3 роки тому +1

      @@Java.Brains thank you koushik, I got a job thanks to your videos. I take the lessons you teach to my heart

  • @xsilverx1198
    @xsilverx1198 Рік тому

    Amazing explanation 👏 thank you

  • @ManojSharmaMJS
    @ManojSharmaMJS 3 роки тому

    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.

  • @piters101
    @piters101 3 роки тому +1

    As always great video and simple and understandable explanation

  • @sonofgod00
    @sonofgod00 3 роки тому

    Thanks kaushik sir.

  • @chintansanghavi4083
    @chintansanghavi4083 2 роки тому

    Nicely explained.

  • @paulhagan3348
    @paulhagan3348 Рік тому

    great job, very clear to understand

  • @rajakvk2837
    @rajakvk2837 3 роки тому

    Please cover Cloud infrastructures as well. Myself became fan of your channel.

  • @ashokkumartalupula7503
    @ashokkumartalupula7503 2 роки тому

    Very well explained👌 Thank you🙏

  • @yofuru
    @yofuru 2 роки тому

    Really good explanation, thank you for sharing this very nicely integrated knowledge!

  • @SinanMustafov619
    @SinanMustafov619 3 роки тому +3

    Would you consider making videos about different design patterns?

  • @tomknud
    @tomknud 2 роки тому

    Nice explanation of all that. Thanks

  • @beamer5404
    @beamer5404 3 роки тому

    Very well explained. So neat. Thanks.

  • @srinidhikoundinya18
    @srinidhikoundinya18 3 роки тому +3

    Hi....when is your docker course coming out ?? Eagerly waiting for it :)

  • @pazhanikumar8584
    @pazhanikumar8584 7 місяців тому

    nice explanation.

  • @yomista
    @yomista Рік тому

    So easy to understand and detailed. Subbed!~

  • @alisharifi9541
    @alisharifi9541 2 роки тому

    fucking well explained unlike many other channels which just want to complicate the concept

  • @sachintha659
    @sachintha659 3 роки тому

    clear explanation

  • @rasathuraisivaram8301
    @rasathuraisivaram8301 3 роки тому +1

    The name should be changed to programming Brains instead of Java Brains. Thanks Kaushik for your new video

  • @yashpandey9550
    @yashpandey9550 3 роки тому +2

    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?

    • @Java.Brains
      @Java.Brains  3 роки тому +9

      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!

  • @AKatyal90
    @AKatyal90 3 роки тому

    Brilliantly explained !!

  • @Ayush-Pro-Max-Ultra
    @Ayush-Pro-Max-Ultra 3 роки тому

    Thanks Kaushik!

  • @mehargayatri7936
    @mehargayatri7936 3 роки тому

    Very clear explanation Thanks a lot

  • @kevinvelasquez9479
    @kevinvelasquez9479 Рік тому

    I loved it, thank you.

  • @hamidja1537
    @hamidja1537 2 роки тому

    Thanks for sharing

  • @AnatolyLeonov
    @AnatolyLeonov Рік тому

    Thanks :) Useful video

  • @clonger204
    @clonger204 2 роки тому

    Great video, many thanks.

  • @dansmith5037
    @dansmith5037 2 роки тому

    great video!

  • @ganeshramanan4756
    @ganeshramanan4756 3 роки тому +1

    Thanks for sharing knowledge, may I assume api gateways are use case of reverse proxy?

  • @harshraj22_
    @harshraj22_ 3 роки тому +3

    Hey ! What's difference between reverse proxy and API gateway ? From your explanation, they both seem to be same

    • @vm1662
      @vm1662 2 роки тому

      I have the same question. Or is an API gateway an example of reverse proxy? Were you able to find out?

    • @vm1662
      @vm1662 2 роки тому

      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.

  • @nuttButterAMK
    @nuttButterAMK 3 роки тому

    You are the best

  • @rithysong8704
    @rithysong8704 Рік тому

    thank youuuu

  • @james-wihz
    @james-wihz Рік тому

    thanks bro

  • @hidayathidayat4469
    @hidayathidayat4469 3 роки тому

    video that made me stop google "what is reverse proxy"

  • @AkumaNoKuma
    @AkumaNoKuma 2 роки тому

    thanks!

  • @janodost4630
    @janodost4630 3 роки тому

    Thanks!

  • @shashankjakhmola6226
    @shashankjakhmola6226 2 роки тому

    What is the difference between load balancing server , api gateway and reverse proxy?

  • @georgebanin4812
    @georgebanin4812 9 місяців тому

    So what exactly is the difference between a gateway and a proxy server

  • @aruneshsrivastava7154
    @aruneshsrivastava7154 Рік тому

    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

  • @sushantbanuagriya5554
    @sushantbanuagriya5554 3 роки тому

    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 ?

  • @matthiasgiger1875
    @matthiasgiger1875 3 роки тому

    😂 very smart that proxy college concept

  • @knowledgeseeker3530
    @knowledgeseeker3530 3 роки тому

    Are there any plans to teach Microservices Architectural Patterns?

  • @anonymous9048
    @anonymous9048 3 роки тому

    Can we say that needing only one public IP is a valid advantage of a reverse proxy?

  • @lakshbk
    @lakshbk 3 роки тому

    What iS difference between nat gateway and proxy?

  • @helloworld4402
    @helloworld4402 3 роки тому

    Can you make a video on OSI model

  • @shredder_plays
    @shredder_plays 3 роки тому

    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

    • @Java.Brains
      @Java.Brains  3 роки тому

      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.

    • @shredder_plays
      @shredder_plays 3 роки тому

      @@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

    • @Java.Brains
      @Java.Brains  3 роки тому

      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.

  • @nournote
    @nournote 3 роки тому

    The example with Gmail is misleading. That goes against TLS which assures end to end encryption.

    • @Java.Brains
      @Java.Brains  3 роки тому +2

      Not really. The proxy would just tunnel TLS though it. End to end encryption still works with proxies.

    • @rasathuraisivaram8301
      @rasathuraisivaram8301 3 роки тому

      TLS will be client to proxy and proxy to gmail server

    • @nournote
      @nournote 3 роки тому +1

      @@Java.Brains does it mean the proxy has user credentials/or session keys?

  • @plreuokjhg
    @plreuokjhg 3 роки тому

    what’s about https

  • @akshaykhule1906
    @akshaykhule1906 3 роки тому

    If you want to learn java, spring, jpa, micro services, who is better in this planet than java brains.

  • @manveersingh5822
    @manveersingh5822 2 роки тому

    Hey your voice sounds like that of Sundar Pichai!

  • @tomknud
    @tomknud 2 роки тому

    lol