Тёмный

MICROSERVICES ARCHITECTURE | API GATEWAY | PART - 5 

Tech Dummies Narendra L
Подписаться 160 тыс.
Просмотров 112 тыс.
50% 1

Learn about API GATEWAY and its necessary, advantages and disadvantages
#microservice #learnmicroservices #totorialssystemdesign #microservicestutorials
#systemdesigntips #systemdesign #computerscience #learnsystemdesign #interviewpreperation #amazoninterview #googleinterview #uberinterview #micrsoftinterview #apigateway

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 101   
@adamhughes9938
@adamhughes9938 4 года назад
Who downvoted this - everything this guy does is gold!
@adilzamal3218
@adilzamal3218 3 года назад
Those are monolithic people 😂
@fadidib8516
@fadidib8516 2 года назад
@@adilzamal3218 😂🦎
@TrueVanguardhasterribletakes
@TrueVanguardhasterribletakes 3 года назад
One of the best tech teaching videos I’ve seen on RU-vid.
@veevek
@veevek 3 года назад
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.
@davidpham6330
@davidpham6330 3 года назад
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!
@ankushgupta6921
@ankushgupta6921 Год назад
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.
@florgum89
@florgum89 3 года назад
So much gold in just this one video. This series is amazing
@wadigzonDiazwong
@wadigzonDiazwong Год назад
BFF good way to add humor to the presentation 🙂 thanks for putting this together, keep up the good work!
@vishnuvardankp7787
@vishnuvardankp7787 4 года назад
Good one. And it's crystal clear. Keep continuing the great work
@nimishpp9649
@nimishpp9649 2 года назад
Excellent clarity in explanation , Thank you so much 👍
@pteaspirant51
@pteaspirant51 2 года назад
You made it very simple mate...thanks and keep making up the vids on microservices!
@angadiabhi057
@angadiabhi057 4 года назад
Thanks for the video, very informative
@kamrul8616
@kamrul8616 3 года назад
Thank you so much, Very clear understanding of API Gateway.
@andywang6856
@andywang6856 2 года назад
I learned so much from your channel. Thank you!
@sagartyagi2450
@sagartyagi2450 3 года назад
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 Год назад
It also keeps the API gateway from being a SPOF or getting overloaded.
@yoshcode
@yoshcode 4 года назад
Great video! Nice and concise.
@sasha4955
@sasha4955 5 месяцев назад
Thank you! You are a very good teacher
@souvikmitrahellboy
@souvikmitrahellboy 3 года назад
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
@Fit_YogeshPooja
@Fit_YogeshPooja 7 месяцев назад
Loved the video, Thank you so much
@saadowain1729
@saadowain1729 4 года назад
amazing the best explanation about the subject
@buypower-blankcry
@buypower-blankcry Год назад
Where have you been for the past weeks, can't be this same RU-vid, 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
@deverror4045
@deverror4045 3 года назад
Woww amazing explaination thankyou
@koookao
@koookao 2 года назад
I liked the 'Best Friend Forever' analogy it's more 'Best F*ck Friend' lmao xD
@krastyuterziev4062
@krastyuterziev4062 3 года назад
Thank you so much, you sir have helped a lot of people. Great explanation.
@alexrosu29
@alexrosu29 3 года назад
Great video series !!!!
@ahmedabouelfotouh7188
@ahmedabouelfotouh7188 3 года назад
Great explanation of ideas. Thanks so much :D
@dkk351
@dkk351 4 года назад
Thanks Bro.. Very useful information at a high level.
@abhiramsatpute
@abhiramsatpute 2 года назад
Amazing ! Could this be added as a disadvantage of API Gateway that we cannot monitor the health of the API Gateway easily?
@iaroslavdavydiak6439
@iaroslavdavydiak6439 2 года назад
Thank you so much, awesome explanation 👍
@ahmadbaiazid976
@ahmadbaiazid976 3 года назад
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
@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???
@khatiwwaraa
@khatiwwaraa 3 года назад
fantastic demo!! Thank you!
@mahek2001
@mahek2001 Год назад
Thanks for the knowledge
@shaileshhegde9205
@shaileshhegde9205 3 года назад
Does API Gateway do network traffic balancing like load balancer or do you need that along with API Gateway?
@tsahay22
@tsahay22 4 года назад
Wonderfully explained! 👍
@thiwanka.w92
@thiwanka.w92 3 года назад
Great explanation.
@anujyadav0207
@anujyadav0207 2 года назад
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?
@puneetsaneja3007
@puneetsaneja3007 4 года назад
Have you created the videos to implement all these stuff. Or you have covered theoretical concept only ?
@nikhilgoyal8340
@nikhilgoyal8340 3 года назад
Nice explanation.
@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.
@ghanshyamkhatri3541
@ghanshyamkhatri3541 4 года назад
super awesome!!
@Miguel-ym2rr
@Miguel-ym2rr 3 года назад
Good one, thank you so much!.
@harshshah5511
@harshshah5511 4 месяца назад
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
@hyperborean72
@hyperborean72 Год назад
... and API gateway finally turns whole application into monolith. I guess API Gateway concept is the basis for server-side service discovery
@vaibhavsharma3955
@vaibhavsharma3955 3 года назад
very nice explanation :) +1
@dataman4503
@dataman4503 2 года назад
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.
@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
@AkshayMukadam
@AkshayMukadam Месяц назад
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
@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.
@knight0856
@knight0856 4 года назад
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
@flashproduct1268
@flashproduct1268 2 года назад
Ah pas mal !
@noortech254
@noortech254 3 года назад
Thank u sir!👌🏻
@sheksbear
@sheksbear 4 года назад
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 года назад
API gateway also runs on multiple instances...
@sougatamaitra1921
@sougatamaitra1921 4 года назад
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.
@caLLLendar
@caLLLendar 2 года назад
Why did you overlook the Frontend server as "the single point of failure"?
@hyperborean72
@hyperborean72 Год назад
how to implement API gateway? is it another micro service whose purpose is to re-translate client calls?
@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
@marismore1690
@marismore1690 3 года назад
Thanx🙏👏
@Lifeofchandniii
@Lifeofchandniii 4 года назад
hi could you please make videos of how to secure rest api and debugging of microservices
@mqtt07
@mqtt07 3 года назад
Is there any api gateway implemented in open source project which I can look at as a case study?
@khangdong8875
@khangdong8875 4 года назад
Why we don't use 1 api gateway for web, 3rd and devices?
@pradippsm1983
@pradippsm1983 4 года назад
Thanks, bro.
@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
@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
@badrulhussain5545
@badrulhussain5545 3 года назад
Does the API Gateway handles sessions or how does it handle state on a web app?
@caLLLendar
@caLLLendar 2 года назад
State is handled on the Frontend server. Make the API Gateway stateless.
@vaishnavplays203
@vaishnavplays203 2 года назад
@introvert9639
@introvert9639 2 года назад
also later we'll need a gateway(s) for the gateways 😂
@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.
@nasermirzaei89
@nasermirzaei89 4 года назад
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 3 года назад
API gateway becomes the single point of failure of the system, can you elaborate how to mitigate that?
@09abhishekk
@09abhishekk 3 года назад
Use multiple API gateways served by the Load Balancer in front of it to mitigate the problem statement.
@caLLLendar
@caLLLendar 2 года назад
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
@zli9860
@zli9860 4 года назад
another disadvantage is api gateway not support tcp
@PK-xw3nn
@PK-xw3nn 3 года назад
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 2 года назад
The latency inside the cloud infrastructure is much lower than calling multiple services from the client
@patrickstival6179
@patrickstival6179 2 года назад
With that BFF infrastructure you can also trim down or modify whatever you want from each microservice response
@caLLLendar
@caLLLendar 2 года назад
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.
@bhupendrabisht6951
@bhupendrabisht6951 4 года назад
if someone directly jump on our main micro services. then how to prevent?
@sanilkhurana3991
@sanilkhurana3991 4 года назад
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.
@sravankumarpenuballi1536
@sravankumarpenuballi1536 4 года назад
please provdie the example for this
@kaysong3800
@kaysong3800 4 года назад
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!!
@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
@naughtynhyde9328
@naughtynhyde9328 3 года назад
you need api gateway cuz your boss likes the next big thing
@caLLLendar
@caLLLendar 2 года назад
No; Did you watch the video? If not, are you really unable to imagine the benefits of the gateway server?
@tenminutetokyo2643
@tenminutetokyo2643 4 года назад
Thanks but you could have explained it in 5 mins.
Далее
Сколько стоит ПП?
00:57
Просмотров 217 тыс.
What is an API Gateway?
10:19
Просмотров 314 тыс.
Microservices with Databases can be challenging...
20:52
Domain Driven Design: What You Need To Know
8:42
Просмотров 127 тыс.
API Gateway explained
22:30
Просмотров 132 тыс.
Do you know Distributed transactions?
31:10
Просмотров 230 тыс.
REST API Interview Questions (Beginner Level)
7:07
Просмотров 184 тыс.