MICROSERVICES ARCHITECTURE | API GATEWAY | PART - 5

Sdílet
Vložit
  • čas přidán 5. 03. 2020
  • Learn about API GATEWAY and its necessary, advantages and disadvantages
    #microservice #learnmicroservices #totorialssystemdesign #microservicestutorials
    #systemdesigntips #systemdesign #computerscience #learnsystemdesign #interviewpreperation #amazoninterview #googleinterview #uberinterview #micrsoftinterview #apigateway

Komentáře • 100

  • @TrueVanguardhasterribletakes

    One of the best tech teaching videos I’ve seen on CZcams.

  • @sasha4955
    @sasha4955 Před 3 měsíci

    Thank you! You are a very good teacher

  • @davidpham6330
    @davidpham6330 Před 3 lety +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!

  • @veevek
    @veevek Před 2 lety +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.

  • @adamhughes9938
    @adamhughes9938 Před 4 lety +51

    Who downvoted this - everything this guy does is gold!

  • @vishnuvardankp7787
    @vishnuvardankp7787 Před 4 lety +2

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

  • @yoshcode
    @yoshcode Před 4 lety +1

    Great video! Nice and concise.

  • @florgum89
    @florgum89 Před 3 lety +1

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

  • @angadiabhi057
    @angadiabhi057 Před 4 lety +3

    Thanks for the video, very informative

  • @nimishpp9649
    @nimishpp9649 Před 2 lety

    Excellent clarity in explanation , Thank you so much 👍

  • @wadigzonDiazwong
    @wadigzonDiazwong Před rokem

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

  • @dkk351
    @dkk351 Před 3 lety

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

  • @ahmedabouelfotouh7188
    @ahmedabouelfotouh7188 Před 3 lety

    Great explanation of ideas. Thanks so much :D

  • @tsahay22
    @tsahay22 Před 3 lety

    Wonderfully explained! 👍

  • @pteaspirant51
    @pteaspirant51 Před 2 lety

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

  • @Miguel-ym2rr
    @Miguel-ym2rr Před 3 lety

    Good one, thank you so much!.

  • @ankushgupta6921
    @ankushgupta6921 Před rokem +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.

  • @saadowain1729
    @saadowain1729 Před 3 lety

    amazing the best explanation about the subject

  • @Fit_YogeshPooja
    @Fit_YogeshPooja Před 5 měsíci

    Loved the video, Thank you so much

  • @kamrul8616
    @kamrul8616 Před 3 lety

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

  • @krastyuterziev4062
    @krastyuterziev4062 Před 3 lety

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

  • @khatiwwaraa
    @khatiwwaraa Před 3 lety

    fantastic demo!! Thank you!

  • @andywang6856
    @andywang6856 Před 2 lety

    I learned so much from your channel. Thank you!

  • @hyperborean72
    @hyperborean72 Před rokem

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

  • @iaroslavdavydiak6439
    @iaroslavdavydiak6439 Před 2 lety

    Thank you so much, awesome explanation 👍

  • @deverror4045
    @deverror4045 Před 2 lety

    Woww amazing explaination thankyou

  • @alexrosu29
    @alexrosu29 Před 3 lety

    Great video series !!!!

  • @thiwanka.w92
    @thiwanka.w92 Před 2 lety

    Great explanation.

  • @ghanshyamkhatri3541
    @ghanshyamkhatri3541 Před 3 lety

    super awesome!!

  • @sagartyagi2450
    @sagartyagi2450 Před 3 lety +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 Před rokem +1

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

  • @koookao
    @koookao Před 2 lety

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

  • @mahek2001
    @mahek2001 Před rokem

    Thanks for the knowledge

  • @buypower-blankcry
    @buypower-blankcry Před rokem

    Where have you been for the past weeks, can't be this same CZcams, me struggling with role based acl, and how the other services would take care of that, i could have just jettisoned the api functionality of proxying request to the services and bring those routes to the gateway and use the services as needed on that business process. wow

  • @pradippsm1983
    @pradippsm1983 Před 4 lety

    Thanks, bro.

  • @vaibhavsharma3955
    @vaibhavsharma3955 Před 3 lety

    very nice explanation :) +1

  • @nikhilgoyal8340
    @nikhilgoyal8340 Před 3 lety

    Nice explanation.

  • @souvikmitrahellboy
    @souvikmitrahellboy Před 3 lety +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

  • @noortech254
    @noortech254 Před 3 lety

    Thank u sir!👌🏻

  • @flashproduct1268
    @flashproduct1268 Před 2 lety

    Ah pas mal !

  • @puneetsaneja3007
    @puneetsaneja3007 Před 3 lety +2

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

  • @ahmadbaiazid976
    @ahmadbaiazid976 Před 3 lety +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

  • @abhiramsatpute
    @abhiramsatpute Před 2 lety +1

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

  • @anujyadav0207
    @anujyadav0207 Před 2 lety +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?

  • @kirteshshah3578
    @kirteshshah3578 Před rokem

    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???

  • @shaileshhegde9205
    @shaileshhegde9205 Před 3 lety +1

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

  • @AngelicaFWhite
    @AngelicaFWhite Před 2 lety

    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.

  • @knight0856
    @knight0856 Před 4 lety +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 Před 2 lety

      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

  • @marismore1690
    @marismore1690 Před 2 lety

    Thanx🙏👏

  • @LuisMunoz-yi8qz
    @LuisMunoz-yi8qz Před 2 lety

    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.

  • @harshshah5511
    @harshshah5511 Před měsícem

    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

  • @shreyshah4256
    @shreyshah4256 Před 2 lety

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

  • @mqtt07
    @mqtt07 Před 3 lety

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

  • @foodiechandu
    @foodiechandu Před 3 lety

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

  • @introvert9639
    @introvert9639 Před rokem

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

  • @shubhampassi3958
    @shubhampassi3958 Před 2 lety

    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

  • @hyperborean72
    @hyperborean72 Před rokem

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

  • @sheksbear
    @sheksbear Před 4 lety +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 Před 4 lety +4

      API gateway also runs on multiple instances...

    • @sougatamaitra1921
      @sougatamaitra1921 Před 4 lety +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 Před 3 lety

      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.

    • @caLLLendar
      @caLLLendar Před 2 lety

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

  • @vaishnavplays203
    @vaishnavplays203 Před rokem

  • @adamhughes9938
    @adamhughes9938 Před 4 lety

    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

  • @ghanshyam014
    @ghanshyam014 Před 4 lety

    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

  • @badrulhussain5545
    @badrulhussain5545 Před 3 lety

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

    • @caLLLendar
      @caLLLendar Před 2 lety

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

  • @dataman4503
    @dataman4503 Před 2 lety +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 Před rokem

      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 Před rokem

      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.

  • @khangdong8875
    @khangdong8875 Před 3 lety

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

  • @shruthit.g.9475
    @shruthit.g.9475 Před 4 lety

    Pls suggest the best way to implement insulation

    • @adamhughes9938
      @adamhughes9938 Před 4 lety

      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.

  • @bhupendrabisht6951
    @bhupendrabisht6951 Před 4 lety

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

    • @sanilkhurana3991
      @sanilkhurana3991 Před 4 lety +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.

  • @zli9860
    @zli9860 Před 3 lety

    another disadvantage is api gateway not support tcp

  • @sravankumarpenuballi1536

    please provdie the example for this

  • @PK-xw3nn
    @PK-xw3nn Před 3 lety

    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 Před 2 lety +1

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

    • @patrickstival6179
      @patrickstival6179 Před 2 lety

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

    • @caLLLendar
      @caLLLendar Před 2 lety

      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.

  • @nasermirzaei89
    @nasermirzaei89 Před 4 lety +1

    Is it bad practice to use GraphQL as API Gateway?

    • @adamhughes9938
      @adamhughes9938 Před 4 lety

      I think they are different technologies and serve different purposes

    • @nasermirzaei89
      @nasermirzaei89 Před 4 lety

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

    • @arvi8843
      @arvi8843 Před 3 lety

      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 Před 3 lety

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

    • @09abhishekk
      @09abhishekk Před 3 lety +1

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

    • @caLLLendar
      @caLLLendar Před 2 lety

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

  • @rohanzade4972
    @rohanzade4972 Před 2 lety

    am not getting your Part 1 to 4 videos

  • @kaysong3800
    @kaysong3800 Před 4 lety +1

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

    • @truth7017
      @truth7017 Před 3 lety

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

  • @naughtynhyde9328
    @naughtynhyde9328 Před 2 lety

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

    • @caLLLendar
      @caLLLendar Před 2 lety

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

  • @sanilkhurana3991
    @sanilkhurana3991 Před 4 lety

    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 Před 4 lety +1

    Thanks but you could have explained it in 5 mins.