Load Balancer vs Reverse Proxy (Explained by Example)

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 77

  • @RichardBronosky
    @RichardBronosky 5 років тому +109

    Reverse Proxy and Load Balancer is a classic rectangle:square relationship. Thank you.

    • @hnasr
      @hnasr  5 років тому +16

      Bruno Bronosky well said! Wish I have thought of that haha

  • @mishrasidhant
    @mishrasidhant 4 роки тому +19

    Your passion comes through with your content, and ooh boy is it a blessing for all us clueless meandering junior devs. Thank you. I'm thoughrouly enjoying your explanations.

    • @hnasr
      @hnasr  4 роки тому +4

      Thank you Sid!! I am passionate about the content I make and so greatful for all or you guys watching and enjoying it 😍

  • @mostinho7
    @mostinho7 4 роки тому +11

    Done thanks
    Load balancer is one of the applications of a reverse proxy
    Reverse proxy sits between the client request and the server instances
    Reverse proxy can cache requests
    Don’t need to use ssl between the reverse proxy and your application instance because they are supposed to be behind a firewall, only the reverse proxy is accessible from public internet

    • @hnasr
      @hnasr  4 роки тому

      Thanks for the summary! For the last point (no need to use SSL behind the reverse proxy, true if you are in a private network but its recommended if you are in cloud architecture)

    • @johnclarkson6120
      @johnclarkson6120 4 роки тому

      But today’s network, lb or reverse proxy even firewall can do the same thing, software function will keep as the same, like iPhone vs android.
      Even kernel is different, but for user’s perspective, just the same.
      So lb vs reverse proxy
      Main thing is
      Lb is marketing defined word.
      Reverse proxy is technical word...
      Nothing fancy

    • @michaelcoelho2715
      @michaelcoelho2715 4 роки тому

      @Hussein Nasser you could make videos on Mutual TLS between the proxy and the servers

  • @Google.clouds
    @Google.clouds 6 місяців тому

    Your 10 minutes of content saves lots of time . Hats off to this man.

  • @manofacertainrage1504
    @manofacertainrage1504 5 років тому +14

    I've been in the biz for many years, but the best explanation of how a reverse proxy differs from a proxy is at 2:30.

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

    Just learning about these for the first time, and didn't find any resources that describes the relationship between these. Super helpful in 2021, thank you!

  • @geosaiofficial1070
    @geosaiofficial1070 4 роки тому +2

    This is what I am looking for. The concept, the fundamental not just some random guys typing some randoms codes on youtube. Thank you for sharing Hussein.

    • @hnasr
      @hnasr  4 роки тому

      yogi winardhana thanks Yogi glad you enjoyed the content and found what your looking for!

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

    Doesn’t caching web pages destroy the ability to count the number of visitors to a specific page or to gather the metrics from those visitors? Particularly in the case where the web-site owner doesn’t own all of the caching servers (ie ISP’s caching content regionally)

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

    Either I feel I would like to have more information and longer video OR I feel that video are too long... Regardless these videos are addictive haha 😂 Glory to the back end guru!!!

  • @rahulsharma5030
    @rahulsharma5030 4 роки тому +2

    thanks for nice video ,i am a bit confused though:
    I think load balancer is also :
    1. Single entry point like proxy and isolates internal traffic.
    2. Canary deployment can also happens through this also,when it goes to a particular new app host
    So, except caching, which load balancer does implicitly supports, all other features are implicitly supported by load balancer,Am I correct?

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

    Excellent content as always. Thank you 👍

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

    thanks Hussein for the great video!

  • @carlopasswords7083
    @carlopasswords7083 4 роки тому +9

    many unnecessary words in the video, be brief and clear
    Thanks good explains!

  • @manikandang9989
    @manikandang9989 5 років тому +2

    superb explaination . Keep doing this Thanks.

    • @hnasr
      @hnasr  5 років тому

      MANIKANDAN G thanks for the support! Will do! Stay awesome

  • @Saurabhandsonu1994
    @Saurabhandsonu1994 4 роки тому +1

    This might be a stupid question, but is varnish used at reverse proxy level/ layer?(or redis?)

    • @hnasr
      @hnasr  4 роки тому

      Saurabh Agrawal it is actually a great question, yes varnish is a reverse proxy. Check out my Varnish video where I discuss how Varnish is a reverse proxy Varnish - HTTP Accelerator Crash Course
      ua-cam.com/video/-cWs6eoyaLg/v-deo.html

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

    When somebody uses gliffy, he knows his stuff

  • @richardwang3438
    @richardwang3438 5 років тому +1

    great video again, really enjoy it

  • @rajatahuja4720
    @rajatahuja4720 4 роки тому

    what's the different b/w LB and RV vs API gateway

    • @hnasr
      @hnasr  4 роки тому

      Not sure what RV is, but API gateway and LB are both Reverse proxies

    • @rajatahuja4720
      @rajatahuja4720 4 роки тому

      @@hnasr RV I meant to say reverse Proxy. How and where shall we add Authentication and Authorization logic?

    • @hnasr
      @hnasr  4 роки тому

      Usually the authentication is added at the reverse proxy level.. so backend servers don’t have to worry about it..

  • @大盗江南
    @大盗江南 4 роки тому +2

    Thank you a lot for this amzing video! Could u plz do a video comparing about Load Balancer and API Gateway? Thx in advance :)

  • @WorstDeveloper
    @WorstDeveloper 4 роки тому

    If the reverse proxy caches the response, how will it know when the response is outdated?
    Maybe the content in the database was updated for example.

    • @hnasr
      @hnasr  4 роки тому

      CodeBit good question this is a very difficult problem to solve. caching Reverse proxies solve this problem differently check out varnish for example
      ua-cam.com/video/-cWs6eoyaLg/v-deo.html

  • @RajYadav-sr3wo
    @RajYadav-sr3wo 4 роки тому

    I don't think alb requires 2 servers min. It works with 1 server acting as reverse proxy.

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

    Done ✔️ thanks for knowledge 🙏

  • @demidrek-heyward
    @demidrek-heyward 4 роки тому +1

    thank you my man

    • @hnasr
      @hnasr  4 роки тому

      Appreciate your comment Mathias

  • @kaliyaperumalarounassalam3721
    @kaliyaperumalarounassalam3721 4 роки тому

    url rewriting - does it only one of the feature of Reverse Proxy ?
    DNS - does it only one of the feature of Reverse Proxy ?

  • @PTM1008
    @PTM1008 4 роки тому +1

    Actual content starts at 1:00

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

    How i can load balance my reverse proxy

  • @Roman-kpax
    @Roman-kpax 3 роки тому

    google's website has a reverse proxy/load balancer server that distributes requests to different servers but there are millions of requests to "google.com" every second. One reverse proxy server wouldn't process so many requests, how is this load distributed? Are there a lot of reverse proxy servers under one URL?

  • @EvangelistaBoccadoro
    @EvangelistaBoccadoro 4 роки тому

    Another Great Video ⬆️🔥⬆️ Thank You!

    • @hnasr
      @hnasr  4 роки тому

      Thanks Gregorio !

  • @johanardiwibisono7703
    @johanardiwibisono7703 5 років тому

    Thanks for sharing your knowledge

    • @hnasr
      @hnasr  5 років тому +2

      My pleasure Johan! Enjoy and thanks for your message

    • @johanardiwibisono7703
      @johanardiwibisono7703 5 років тому

      @@hnasr may i request about firewall deeply :) thanks

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

    So to summarise: load balancing is just a particular application of the reverse proxy

  • @RDas_
    @RDas_ 4 роки тому

    Is Load balancer same like reverse proxy with load balancing feature.

    • @hnasr
      @hnasr  4 роки тому +1

      Rahul Das correct , a load balancer is a reverse proxy but a reverse proxy is not necessarily a load balancer

    • @RDas_
      @RDas_ 4 роки тому

      @@hnasr Thanks Hussein 👍

  • @hasanh.eruslu9001
    @hasanh.eruslu9001 5 років тому +1

    Can you move the browser a little bit to the left so that it's aligned :)

    • @hnasr
      @hnasr  5 років тому

      Thanks! Ill make sure to do that in the coming videos.. appreciate it

    • @classical-bit
      @classical-bit 4 роки тому +1

      😂

  • @SantoshKumar-bm2iz
    @SantoshKumar-bm2iz 5 років тому

    Please make a video on proxy architecture and how web access layer and web request layer work, why we see some weird responses of proxy with scenarios

    • @hnasr
      @hnasr  5 років тому +1

      Santosh Kumar nice idea! I already made a dedicated video about PROXY architecture how it works and much more check it out! ua-cam.com/video/x4E4mbobGEc/v-deo.html let me know if that answers your questions .. cheers and thanks for comment

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

    Dziękujemy.

  • @DevOpsKey1
    @DevOpsKey1 5 років тому +1

    Here what is meant by application server, But, in my case i am understanding it as server on which application are reside.

    • @hnasr
      @hnasr  5 років тому

      Hassan Shamshir correct essentially the nodes in the diagrams are applications “processes” listening on ports. It is up to you to run those processes on a single “server” machine or multiple ones

    • @srishti-ai
      @srishti-ai 3 роки тому

      In case of Django/flask, an application server would be Gunicorn/uWSGI/WSGI which is like a middleman between your Django app and the web server.
      I don't know much about these things, this is just what I think it means.

  • @george-vellis
    @george-vellis 4 роки тому +1

    Thank you Hussein, great material as always!
    One aspect though I have never seen being tackled is: how can we support redundancy at the reverse proxy level? E.g. what happens if the single reverse proxy of a given architecture fails (i.e. high availability support)? Also, what if we just want to increase the system throughput by having multiple reverse proxies at the front level and not just one? How can we map a single domain name to different ips - i.e. how the necessary routing can be supported?
    Regarding software-related solutions, is "Virtual Ip" the answer?

    • @hnasr
      @hnasr  4 роки тому +2

      Virtual IP is one answer, DNS load balancer is another
      I talked about this here
      ua-cam.com/video/d-Bfi5qywFo/v-deo.html
      ua-cam.com/video/Zgy1miPsTNs/v-deo.html
      ua-cam.com/video/NizRDkTvxZo/v-deo.html

    • @george-vellis
      @george-vellis 4 роки тому

      @@hnasr Thank you so much!

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

    Awesome video +++++++++++++ 🙂

  • @joakimragnmark322
    @joakimragnmark322 5 років тому

    Great work

    • @hnasr
      @hnasr  5 років тому

      Joakim Ragnmark thanka Joakim!

  • @amokrani
    @amokrani 5 років тому

    Brilliant!

    • @hnasr
      @hnasr  5 років тому +2

      Thanks 🙏 have a beautiful day

  • @ahsanhabib2577
    @ahsanhabib2577 4 роки тому +1

    Excellent video !!! I have a question though. At around 7:45, you mentioned Load Balancer does not give all the 6 benefits of the reverse proxy. I thought Load Balancer has all the features of Reverse Proxy, additionally, it has the capability to Balance the traffic. So which are the features(you mentioned) of the reverse proxy, Load Balancer does not provide?

    • @hnasr
      @hnasr  4 роки тому +4

      Great question, That statement
      Is correct only if you have a software that is built purely as a load balancer and nothing else. the moment you implement that load balancer you give up certain features of reverse proxy such as Canary deployment, blue green deployment and layer 7 routing (if app1 go here if app2 go here) because its a just dumb balancer doesnt have rules
      That being said, most of the time you can almost never find a software that is just a load balancer, you get instead a proxy that can also be a reverse proxy that can also be configured as a load balancer (e.g. haproxy, nginx, envoy)
      check out the haproxy video I made
      Hope that helps!

  • @hytim9007
    @hytim9007 4 роки тому

    can you explain how to use reverse proxy for authentication?

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

      Hy Tim very interesting question, here is the problem is you have many services that need to be authenticated. Each service written in a different language, so naturally your authentication logic also need to be in the same language so here you are maintaining multiple authentication libraries. Second each of service doing extra (duplicate) work instead of what its suppose to do
      The solution is put a reverse proxy that take all requests, does the authentication and forward the request to the backend service only if is ok.
      Still its not as simple as it looks, there are some work needs to be done buts thats a summary

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

    Thanks but had to put the speed on 1.5x to get to the point.

  • @nirmitsrivastava
    @nirmitsrivastava 4 роки тому

    Watch at 1.25X . Thank me later.

  • @hanafim
    @hanafim 17 днів тому

    Bro my tees are crying

  • @HEWfunkingKNEWit
    @HEWfunkingKNEWit 4 роки тому

    So what is the charactasterix of a load balancer 😋. Sir your videos are great, you explain things very well. Thankyou

    • @hnasr
      @hnasr  4 роки тому

      Glad I could help!!

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

    You can have a load balancer in front of a single server too

  • @hanafim
    @hanafim 17 днів тому

    bro😊🎉🎉😢😢😢