Understanding Proxy, Forward Proxy, and Reverse Proxy

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ส.ค. 2024
  • System Design for SDE-2 and above: arpitbhayani.m...
    System Design for Beginners: arpitbhayani.m...
    Redis Internals: arpitbhayani.m...
    Build Your Own Redis / DNS / BitTorrent / SQLite - with CodeCrafters.
    Sign up and get 40% off - app.codecrafte...
    In this video, I delved into the concept of proxies, explaining their purpose, types, and practical examples. A forward proxy acts as a shield for clients, hiding their identity for security and policy reasons. On the other hand, a reverse proxy manages complexities of downstream systems like load balancing and routing, offering benefits such as caching and abstraction. Database proxies like ProxySQL optimize database connections and abstract out the underlying infrastructure complexities. Understanding proxies is crucial for system design and enhancing system efficiency.
    Recommended videos and playlists
    If you liked this video, you will find the following videos and playlists helpful
    System Design: • PostgreSQL connection ...
    Designing Microservices: • Advantages of adopting...
    Database Engineering: • How nested loop, hash,...
    Concurrency In-depth: • How to write efficient...
    Research paper dissections: • The Google File System...
    Outage Dissections: • Dissecting GitHub Outa...
    Hash Table Internals: • Internal Structure of ...
    Bittorrent Internals: • Introduction to BitTor...
    Things you will find amusing
    Knowledge Base: arpitbhayani.m...
    Bookshelf: arpitbhayani.m...
    Papershelf: arpitbhayani.m...
    Other socials
    I keep writing and sharing my practical experience and learnings every day, so if you resonate then follow along. I keep it no fluff.
    LinkedIn: / arpitbhayani
    Twitter: / arpit_bhayani
    Weekly Newsletter: arpit.substack...
    Thank you for watching and supporting! it means a ton.
    I am on a mission to bring out the best engineering stories from around the world and make you all fall in
    love with engineering. If you resonate with this then follow along, I always keep it no-fluff.

ความคิดเห็น • 41

  • @SumitGouthaman
    @SumitGouthaman 4 หลายเดือนก่อน +14

    Recommendation for a future video topic:
    You should consider making one about how Load Balancers work at a low level. Right down to things like how the packets are routed, what state is maintained at each component and where connections are terminated, how special cases like websockets and SSE work, etc.
    I see a lot of hand waving and errors in most existing videos surrounding that topic.

    • @theonewhobullies
      @theonewhobullies 4 หลายเดือนก่อน +1

      second this, would be really interesting.

  • @UdayKiran-mw4cr
    @UdayKiran-mw4cr 4 หลายเดือนก่อน +15

    The example of forward proxy was amazing.

  • @UtsavChokshi
    @UtsavChokshi 4 หลายเดือนก่อน +2

    Another example of Forward Proxy (similar to LinkedIn example of yours) that I remember is : IRCTC allowing to book only one ticket from one IP during tatkal time. This was around 2016.

  • @codekarlebhai
    @codekarlebhai 4 หลายเดือนก่อน +5

    basically can we say that both reverse and forward proxy are same just the difference is in perspective how client/server see them right?

  • @dontlookup1337
    @dontlookup1337 4 หลายเดือนก่อน +2

    Blooper at 5:15 , but not a biggie, amazing video!

    • @AsliEngineering
      @AsliEngineering  4 หลายเดือนก่อน

      Hahah. Forgot to edit it out. I try to record video in one take so this slipped 😂

  • @user-je3re3jm9m
    @user-je3re3jm9m 3 หลายเดือนก่อน +2

    Hey very good explanation.
    Having reverse proxies abstracts the infrastructure elasticity and becomes a single point of contact.
    But does this also mean the the single point of contact can also become a single point of failure?
    So how do we solve that?

    • @AtulKumar-wl6em
      @AtulKumar-wl6em 3 หลายเดือนก่อน +2

      We do have backup machines for reverse proxies as well, even the traffic load is being monitored and parallel proxies are auto-configured based on a configured set limit

  • @sameergaikwad222
    @sameergaikwad222 หลายเดือนก่อน

    awesome explanation bro 👍👍👍👍

  • @sanchitbeetan3811
    @sanchitbeetan3811 4 หลายเดือนก่อน

    great explanation!! imprinted in my memory forever 🙏

  • @raj_kundalia
    @raj_kundalia 4 หลายเดือนก่อน +1

    thank you for making it simple!

  • @ErLakhan
    @ErLakhan 4 หลายเดือนก่อน

    Finally I got it, Thank you Sir :)

  • @thefireagen
    @thefireagen 4 หลายเดือนก่อน

    Amazing video! Would have been great if you could cover the disadvantages aspect of using them. Thanks

  • @tanujchaniyari6005
    @tanujchaniyari6005 4 หลายเดือนก่อน

    Loved the video. Thanks arpit

  • @imhiteshgarg
    @imhiteshgarg 12 วันที่ผ่านมา

    Thanks Arpit, really nice video, I just wanted to know whether reverse proxy can also ban/reject unwanted responses from microservices to the client or it only scans the incoming requests?

  • @jhanvidattani8196
    @jhanvidattani8196 4 หลายเดือนก่อน

    Thank you this informative video.
    Recommendation for a future video topic:
    What's the difference between a message queue and Kafka and how to choose between them for microservices communication?

  • @theonewhobullies
    @theonewhobullies 4 หลายเดือนก่อน

    Amazing Video

  • @subhaspaul495
    @subhaspaul495 4 หลายเดือนก่อน

    nice video as usual
    Can you pls make a video to point out diff between reverse proxy, api gateway and load balancer

  • @learnwithme7750
    @learnwithme7750 4 หลายเดือนก่อน

    Can we take one which acts as both forward and reverse proxy like suppose if we consider load balancer and also add functionality of forward proxy?

  • @rex-dj5cu
    @rex-dj5cu 4 หลายเดือนก่อน

    Hi Arpit, Pls also create video on OSI Model.

  • @learnwithme7750
    @learnwithme7750 4 หลายเดือนก่อน

    Hi good explanation, one question i.e in organization when all employees use VPN in their system then all requests go through a single forward proxy or each system with VPN has its own forward proxy?

  • @samarthdhawan2229
    @samarthdhawan2229 4 หลายเดือนก่อน +2

    Does VPN act as a forward proxy?

  • @15_rohandesai74
    @15_rohandesai74 4 หลายเดือนก่อน

    Suppose I store live data of some website , In that scenario it is correct to use database proxy ?

  • @ShubhamSharma-ky2tf
    @ShubhamSharma-ky2tf 4 หลายเดือนก่อน

    Please make a video on service discovery service like zookeeper

  • @chikukumar2294
    @chikukumar2294 2 หลายเดือนก่อน

  • @zerotoone4635
    @zerotoone4635 4 หลายเดือนก่อน

    In forward proxy, results from the server are returned to the proxy or to client machine?

    • @AsliEngineering
      @AsliEngineering  4 หลายเดือนก่อน

      Everything goes via the proxy. So via proxy it reaches the client

  • @abhisheksrivastava1426
    @abhisheksrivastava1426 4 หลายเดือนก่อน

    One video on how VPNs work ?

  • @AbidAhsan-yp4dc
    @AbidAhsan-yp4dc 3 หลายเดือนก่อน

    hi, can we get the link of your notes ?

  • @sashpawar11
    @sashpawar11 4 หลายเดือนก่อน

    Are gateways effectively reverse proxies?

    • @AsliEngineering
      @AsliEngineering  4 หลายเดือนก่อน +1

      Yes. gave that very example in the video.

  • @tarunstv796
    @tarunstv796 4 หลายเดือนก่อน

    Is Load Balancer, API gateway, CDN = a reverse proxy?

    • @AsliEngineering
      @AsliEngineering  4 หลายเดือนก่อน

      Yes. While LB and API gateway fit the classic definition of a Reverse Proxy, CDN is also a reverse proxy with caching as its primary purpose. Like any other reverse proxy,
      1. CDN acts as a single point of entry for client requests,
      2. CDN abstracts out different origins configured behind it
      3. CDN can also route the requests across multiple origins depending on the route-matching configuration.
      Hence, your deduction is on point and LB, API Gateway, and CDN are all examples of Reverse Proxies. I elaborated on CDN, as it is an unconventional example.
      Hope this helps. Thanks.

    • @tarunstv796
      @tarunstv796 4 หลายเดือนก่อน

      @@AsliEngineering Thank you very much Arpit.
      Can you please also make a video on how image upload and download/render works with CDN i.e. after uploading the image how will client get the CDN url of the image? and if a CDN doesn't have an image how will it fetch it first time from origin?

  • @Robert-sj8ld
    @Robert-sj8ld 4 หลายเดือนก่อน

    👍🏻👍🏻👍🏻👍🏻👍🏻

  • @krsingh.shubham
    @krsingh.shubham 4 หลายเดือนก่อน

    Lol, had i this idea in my college I would have blocked nptel and topped the semester.

  • @prasaddalvi6426
    @prasaddalvi6426 4 หลายเดือนก่อน

    Walmart hates you

  • @msahu2595
    @msahu2595 4 หลายเดือนก่อน