MICROSERVICES ARCHITECTURE | API GATEWAY | PART - 5

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 102

  • @TrueVanguardhasterribletakes
    @TrueVanguardhasterribletakes 4 роки тому +8

    One of the best tech teaching videos I’ve seen on UA-cam.

  • @adamhughes9938
    @adamhughes9938 4 роки тому +53

    Who downvoted this - everything this guy does is gold!

  • @davidpham6330
    @davidpham6330 4 роки тому +12

    I had such a time struggling with the concept of why API gateways were needed. This answered so many of my questions, and was super clear. Thank you so much, I'm learning so much from watching your videos!

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

    Excellent clarity in explanation , Thank you so much 👍

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

    BFF good way to add humor to the presentation 🙂 thanks for putting this together, keep up the good work!

  • @Fit_YogeshPooja
    @Fit_YogeshPooja 11 місяців тому

    Loved the video, Thank you so much

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

    You made it very simple mate...thanks and keep making up the vids on microservices!

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

    Thank you! You are a very good teacher

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

    Thank you so much, awesome explanation 👍

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

    Good one. And it's crystal clear. Keep continuing the great work

  • @qasimmavani
    @qasimmavani 4 місяці тому

    very helpful videos

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

    Thank you so much, Very clear understanding of API Gateway.

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

    I learned so much from your channel. Thank you!

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

    Great video! Nice and concise.

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

    Great explanation of ideas. Thanks so much :D

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

    fantastic demo!! Thank you!

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

    So much gold in just this one video. This series is amazing

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

    Woww amazing explaination thankyou

  • @veevek
    @veevek 3 роки тому +21

    I enjoyed most of your videos, However I have to say API Gateway concept which you explain here is not 100% correct.
    1. API Gateways main purpose is to help in RAD (Rapid App Development). Team can creates microservices and security part which is the most time consuming and complex part (and keep changing) will be handle by API Gateway.
    2. API Gateway will keep a check on abuse of any api by having a rate limit.
    Security is the biggest reason why API Gateway becomes so important. Combining multiple microservice call into one call will take away all the advantage what microservice has to offer and I respectfully disagree with that part.
    Great work, however I feel you might have to revisit this video.

  • @thiwanka.w92
    @thiwanka.w92 3 роки тому

    Great explanation.

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

    Thanks for the video, very informative

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

    Thanks for the knowledge

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

    Great video series !!!!

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

    Thanks Bro.. Very useful information at a high level.

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

    Wonderfully explained! 👍

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

    amazing the best explanation about the subject

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

    Nice explanation.

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

    Thank you so much, you sir have helped a lot of people. Great explanation.

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

    I think API gateway is for some features like routing, security. It doesn't combine the response from multiple microservices as what if there is error in one microservice? the whole response will be affected. Example payment service is down but search and rest services are working.

  • @Miguel-ym2rr
    @Miguel-ym2rr 4 роки тому

    Good one, thank you so much!.

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

    super awesome!!

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

    very nice explanation :) +1

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

    Ah pas mal !

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

    Thank u sir!👌🏻

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

    Hi Sir please make a video on api gateway and service discovery, where they sit in the architecture and how they are used with one another

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

    ... and API gateway finally turns whole application into monolith. I guess API Gateway concept is the basis for server-side service discovery

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

    Amazing ! Could this be added as a disadvantage of API Gateway that we cannot monitor the health of the API Gateway easily?

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

    I think API gateways should be kept behind LoadBalancers instead of them itself acting as a load balancer. That way API gateway can communicate with microservices independently instead of managing load as well.

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

      It also keeps the API gateway from being a SPOF or getting overloaded.

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

    Thanks for wonderful vedios on microservices. Have a question how exception handling work in microservices? Suppose data updated by 2 microservices in DB and then third microservice failed???

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

    would another consequence be the face that its a single point of failure? if so how do we work around that? my guess is to have multiple replicas? thank you so much for your videos

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

    Thanx🙏👏

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

    Does API Gateway do network traffic balancing like load balancer or do you need that along with API Gateway?

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

    Have you created the videos to implement all these stuff. Or you have covered theoretical concept only ?

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

    I liked the 'Best Friend Forever' analogy it's more 'Best F*ck Friend' lmao xD

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

    one question- if a common API gateway is there to use multiple BE services(for exp-lambda) then how would this API gateway manage the load since it has a limit call/sec- 10k ? cant we use a separate API gateway for each BE service?

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

    At 14:38 you said , may be you put in vkc (not able to heard it properly) could you please explain what is that

  • @LuisMunoz-yi8qz
    @LuisMunoz-yi8qz 2 роки тому

    Thanks for the excellent video. Question, how should the communication between the microservices be? directly using the API gateway or should I use an API Composition call for that?
    Thanks in advance.

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

    Isolation also allows for hiding private APIs and their execution roles. The api from the client only need access rights to call the gateway therefore protecting APIs endpoints and access roles.

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

    But what if the client only wants ratings & review service response? The API gateway arch which you explained seems like client will make a call to API-G & API gateway will call all services and return response? The client does not need data from all services everytime

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

    Thanks Naren for sharing this. One quick question, when you say API gateway can have LB, how actually it happens, is it kind of installation of haproxy on APIGateway or is there any different mechanism ?

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

      I once implemented that, with a spring boot project and with the spring cloud annotation @LoadBalanced. It will balance between service who are already scalled

  • @AkshayMukadam
    @AkshayMukadam 5 місяців тому

    If we have listed an end point that calls 2-3 services, how will the api gateway combine the response and send it back to client, does that mean we need to deploy an another service , at API end point level

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

    hi
    could you please make videos of how to secure rest api and debugging of microservices

  • @udayiscool
    @udayiscool 2 місяці тому

    Can one API gateway for each page in the web application?

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

    Is there any api gateway implemented in open source project which I can look at as a case study?

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

    Thanks, bro.

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

    my company is using nginx web server and kong api gateway but i dont understand why they are using both let me know if u know this.. thanks

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

    Can API gateway be the single point of failure? If it goes down nothing works,
    If it holds true doesn't it brings down the whole idea of microservice architecture?

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

      API gateway also runs on multiple instances...

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

      In AWS world API gateway handles fail over of it . If you write a composite service , then it can be wrapped using Hsytrix / circuit breaker to handle downstream failures and composite services can have multiple instance . If you use a pure API Gateway product , you can have multiple instances of it.

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

      Your API gateway usually acts as a Layer 5 load balancer. We can have a physical Layer 3 load balancer setting in between the client and the API gateway to achieve failover and avoid a single point of failure if one of the instances of API Gateway goes down.

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

      Why did you overlook the Frontend server as "the single point of failure"?

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

    how to implement API gateway? is it another micro service whose purpose is to re-translate client calls?

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

    1) Should API Gateway (software) be on a dedicated VM?
    2) Should we need to have many gateways across the globe? (to have low latency)?
    3) Should we have many gateways at each location (different datacenter?) to avoid single point of failure?
    4) Usually how many requests can a gateway server/vm take?
    5) Is load balancer different from gateway or both are same?
    6) For example, a client (eg: mobile) connects to gateway to interact with the system. Should that gateway be different from API gateway? In other words, should API Gateway be the first and only point of contact (in system) for the client?
    Thanks in advance

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

      2. For decreasing latency, there is CDN which holds static assets like images.
      Having only multiple gateways at various locations near to client wouldn't decrease latency, because the services would still reside at far away location. If you also include multiple sets of services along with gateways at multiple locations for low latency, you are making the system too complex. By doing this you also need to ensure, all services across the globe have the latest copy, which is again increasing overhead.
      Generally decreasing latency is associated with static assets such as images, icons which can be stored at CDNs.

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

      5. A load balancer divides load across multiple servers of same microservice. Whereas API gateway orchestrates all responses of services into one and sends back to client. The logic of load balancer can also be implemented on api gateway.

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

    Does the API Gateway handles sessions or how does it handle state on a web app?

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

      State is handled on the Frontend server. Make the API Gateway stateless.

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

    Why we don't use 1 api gateway for web, 3rd and devices?

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

    I wanted to ask you earlier but I didn't...
    But now I'm asking... ...Software design vs system design
    Both are same terms or different... Plz tell me

  • @shruthit.g.9475
    @shruthit.g.9475 4 роки тому

    Pls suggest the best way to implement insulation

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

      Here's my suggestion. Put all of the microservices in a private subnet that has a security group where the only allowed thing to access them is the NAT-Gateway.

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

    So having more than one api gateway is a new pattern called BFF? Not following why this wouldn't just be part of the "Api Gateway Pattern". W/e just semantics

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

    Is it bad practice to use GraphQL as API Gateway?

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

      I think they are different technologies and serve different purposes

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

      @@adamhughes9938 I mean exposing only graphql as a rest api and use other routes internally (http or rpc)

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

      You can checkout Webiny API architecture. I think it is very interesting that they use AWS API Gateway connect to GraphQL endpoint. I'm also trying to learn more about architecture, and I think they are a good example to look at. :)

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

    API gateway becomes the single point of failure of the system, can you elaborate how to mitigate that?

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

      Use multiple API gateways served by the Load Balancer in front of it to mitigate the problem statement.

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

      Why did you overlook the Frontend server as "the single point of failure"?

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

    am not getting your Part 1 to 4 videos

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

    if someone directly jump on our main micro services. then how to prevent?

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

      Someone cannot directly access your microservices since they are usually protected from public traffic, maybe through private VPCs, security groups, firewalls, application-level code etc.

  • @PK-xw3nn
    @PK-xw3nn 4 роки тому

    So basically, there's no direct connection between Client and Server but there's a deputy-client which will talk to server on behalf of Client. So the load is shifted to this deputy.
    I don't see any advantages in this.

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

      The latency inside the cloud infrastructure is much lower than calling multiple services from the client

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

      With that BFF infrastructure you can also trim down or modify whatever you want from each microservice response

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

      Imagine giving all the code to the Frontend server to a 3rd party company. They can run it on a server they control. The calls to the gateway are simplified. And, it is more secure since they do not have all the locations and credentials to the microservices.

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

    also later we'll need a gateway(s) for the gateways 😂

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

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

    please provdie the example for this

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

    another disadvantage is api gateway not support tcp

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

    at the first glance, I thought ur name is " teach dummies " LOL

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

      Yea same that's why it was perfect for me!!

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

    you need api gateway cuz your boss likes the next big thing

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

      No; Did you watch the video?
      If not, are you really unable to imagine the benefits of the gateway server?

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

    Isn't this already solved by web servers like NGINX or Caddy? Why use API gateway instead of them? All of this can be done with any web server

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

    Thanks but you could have explained it in 5 mins.