What is an API Gateway?

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ค. 2024
  • What's an API gateway? It is a server that exposes internal service APIs to external client devices, using a protocol like HTTP.
    The gateway also uses design patterns like REST and GraphQL to expose APIs, which allow clients to get and update data through servers with databases.
    In this video, we will talk about API gateways, their use cases, and how they work with CDNs and DNSes to ensure fast and reliable user request handling.
    Some of their most common use cases are:
    1. Authentication and Authorization
    2. Request Transformation
    3. Request Validation
    4. Rate Limiting
    5. Routing
    6. Load Balancing
    Looking to ace your system design interviews?
    This course has over 200+ detailed videos on fundamentals, high-level and low-level systems design.
    Use the HELLOWORLD discount to get a massive discount!
    Get InterviewReady: interviewready.io/
    You can follow me on:
    Github: github.com/InterviewReady/sys...
    LinkedIn: / gkcs
    Twitter: / gkcs_
    00:00 What is an API Gateway?
    01:02 Authentication on the Gateway
    01:30 Request Transformation
    02:07 Request Validation
    02:43 Rate Limiting
    03:09 Request Routing
    04:20 Load Balancing
    05:32 Architecture Overview
    06:00 DNS
    07:50 CDNs
    09:30 Architecture Overview with AWS
    10:31 War Story - Restart EVERY Week!
    #SystemDesign #InterviewReady #Coding

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

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

    Thank you for such a good topic

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

    You are best teacher

  • @olajohnson8101
    @olajohnson8101 9 หลายเดือนก่อน +5

    This is perfect timing on this topic. I’m working on a new API gateway for my company .

    • @user-rr1dr7jm4y
      @user-rr1dr7jm4y หลายเดือนก่อน

      did you use a library if yes which one , any suggestions as i am working on api gateway for microservices . mern stack

  • @NeerajSharma-mz4es
    @NeerajSharma-mz4es 7 หลายเดือนก่อน

    nice explanation

  • @shreyasgtrivikram8467
    @shreyasgtrivikram8467 7 วันที่ผ่านมา

    Topic is Explained very nicely .
    Would it be possible for you to provide the link for the free resource on CDN's on how they deliver live streaming . Would be really helpfull
    Thank you 😇

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

    Thanks! Great vid

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

    Thanks gaurav

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

    Great video as always, if it's possible, I would like to hear more about different techs or patterns that enable 3rd party services to communicate with each other without the need of API gateways.
    API Gateways also acts as a Reverse Proxy, so your internal services are not exposed to the internet, how to do that without a proxy or a direct VPN link?

  • @everybot-it
    @everybot-it 9 หลายเดือนก่อน +1

    Thank you!

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

      Thank you 😁

  • @dpynsnyl
    @dpynsnyl 9 หลายเดือนก่อน +1

    to avoid SPOF in a single geographic location, we can also use something like Raft or Paxos to manage consensus and leader election.

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

      Is api gateway is a persistent service? No. Then why is this required? Since this is stateless, deploying replica would serve the purpose

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

    Why do we need to make a deployment on API Gateway in case of contract changes in any of the services? It is because you are also validating the incoming requests (validating request payload) on API Gateway?
    Also, Does all the validation and authorization logic in API gateway goes inside the API Gateway Authorizer?

    • @Prashantsingh896
      @Prashantsingh896 7 หลายเดือนก่อน +2

      Right, lets say we are checking the incoming req against a predefined schema so any changes to that schema would need a new deployment. Otherwise incoming requests would be validated against the old schema.
      Also not all validation/authorization logic goes in gateway, it can reside in service itself also.

  • @z.719
    @z.719 9 หลายเดือนก่อน

    Thanks 👍

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

      Thank you!

  • @ashishkumarmishra3570
    @ashishkumarmishra3570 9 หลายเดือนก่อน +1

    What is the algorithm working behind the load balancer forwarding requests to the POST service having the least load?

    • @gkcs
      @gkcs  9 หลายเดือนก่อน +3

      There are many: weighted round robin, least connections, etc...

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

    Our company uses AWS Chalice as the default tech stack now in almost all projects. 😅

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

    sir good evening as i am new to programming world and facing several challenges while solving the questions can you please help me to overcome come from this problem i want to learn these technologies

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

    API gateways are used when client wants to call any of the endpoint right. but how does two microservice A and B will communicate with each other. Is it via gateway even when we use restTemplate to make API calls? Please answer this question

    • @gkcs
      @gkcs  9 หลายเดือนก่อน +1

      They communicate with each other directly using GRPC or some other protocol.
      Have a look at my WhatsApp System Design video to get ideas around this.

  • @mrrishiraj88
    @mrrishiraj88 9 หลายเดือนก่อน +1

    Good day greetings

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

    Why do we need to add Authorization, validation, rate limit..etc in api gate level. We can add it in each microservice level correct?

    • @RiteshYadav-rc1np
      @RiteshYadav-rc1np 2 หลายเดือนก่อน

      yes you can do it but it will create unnecessary load on microservices why not to prevalidate all this things in api gateway so thats the crux

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

    A this api gateway be netsjs ?

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

    Is it the Controller that is referred to as API Gateway, or are these two completely different? If so, then how?

    • @girishanker3796
      @girishanker3796 2 วันที่ผ่านมา

      The controller is actually part of your service itself. Gateway is a server which routes the incoming client requests to the service ( which will hit the controller inside the service)

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

    Are you currently hiring for interviewready ??

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

      Content writers, yes 😁

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

    how come after two years of working you know so much,

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

      It's 9 years of working 😛

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

      hahaha okay maybe i rushed through your linkedIn@@gkcs

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

    War story?

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

      @@Elwacho1964 ? I didn't get it