What is an API Gateway?

Поделиться
HTML-код
  • Опубликовано: 12 июн 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

Комментарии • 39

  • @jairajsahgal7101
    @jairajsahgal7101 9 месяцев назад

    Thank you for such a good topic

  • @olajohnson8101
    @olajohnson8101 10 месяцев назад +5

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

    • @user-rr1dr7jm4y
      @user-rr1dr7jm4y 2 месяца назад

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

  • @NilakshMalpotra
    @NilakshMalpotra 2 месяца назад

    Thanks! Great vid

  • @NeerajSharma-mz4es
    @NeerajSharma-mz4es 8 месяцев назад

    nice explanation

  • @nehakhatri3921
    @nehakhatri3921 2 месяца назад

    You are best teacher

  • @aryankr
    @aryankr 10 дней назад

    kudos to your work on the topic.

    • @gkcs
      @gkcs  9 дней назад

      Thank you!

  • @everybot-it
    @everybot-it 10 месяцев назад +1

    Thank you!

    • @gkcs
      @gkcs  10 месяцев назад

      Thank you 😁

  • @muhammedshafeeh9133
    @muhammedshafeeh9133 10 месяцев назад

    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?

  • @dpynsnyl
    @dpynsnyl 10 месяцев назад +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 9 месяцев назад

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

  • @z.719
    @z.719 10 месяцев назад

    Thanks 👍

    • @gkcs
      @gkcs  10 месяцев назад

      Thank you!

  • @shreyasgtrivikram8467
    @shreyasgtrivikram8467 Месяц назад

    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 😇

  • @ashishkumarmishra3570
    @ashishkumarmishra3570 10 месяцев назад +1

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

    • @gkcs
      @gkcs  10 месяцев назад +3

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

  • @cripz4203
    @cripz4203 10 месяцев назад

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

  • @mrrishiraj88
    @mrrishiraj88 10 месяцев назад +1

    Good day greetings

  • @atulrai1713
    @atulrai1713 10 месяцев назад

    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 8 месяцев назад +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.

  • @r0075h3ll
    @r0075h3ll 4 месяца назад +2

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

    • @girishanker3796
      @girishanker3796 26 дней назад

      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)

  • @sachinbandil9245
    @sachinbandil9245 5 месяцев назад

    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

  • @sadashivudubalabhadra4186
    @sadashivudubalabhadra4186 4 месяца назад

    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 3 месяца назад

      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

  • @sanjeevkumarrai8440
    @sanjeevkumarrai8440 10 месяцев назад

    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  10 месяцев назад +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.

  • @shabeebck3057
    @shabeebck3057 5 месяцев назад

    A this api gateway be netsjs ?

  • @gopalsirotha
    @gopalsirotha 10 месяцев назад

    Are you currently hiring for interviewready ??

    • @gkcs
      @gkcs  10 месяцев назад

      Content writers, yes 😁

  • @vaishalii_
    @vaishalii_ 8 месяцев назад

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

    • @gkcs
      @gkcs  8 месяцев назад

      It's 9 years of working 😛

    • @vaishalii_
      @vaishalii_ 8 месяцев назад

      hahaha okay maybe i rushed through your linkedIn@@gkcs

  • @abhijeetsingh2933
    @abhijeetsingh2933 10 месяцев назад

    War story?