What is an API Gateway?

  Рет қаралды 49,538

Gaurav Sen

Gaurav Sen

Күн бұрын

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 ай бұрын
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
@NeerajSharma-mz4es
@NeerajSharma-mz4es 8 ай бұрын
nice explanation
@nehakhatri3921
@nehakhatri3921 2 ай бұрын
You are best teacher
@NilakshMalpotra
@NilakshMalpotra 2 ай бұрын
Thanks! Great vid
@aryankr
@aryankr 15 күн бұрын
kudos to your work on the topic.
@gkcs
@gkcs 15 күн бұрын
Thank you!
@muhammedshafeeh9133
@muhammedshafeeh9133 10 ай бұрын
Thanks gaurav
@everybot-it
@everybot-it 10 ай бұрын
Thank you!
@gkcs
@gkcs 10 ай бұрын
Thank you 😁
@RicardoSilvaTripcall
@RicardoSilvaTripcall 8 ай бұрын
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?
@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 😇
@dpynsnyl
@dpynsnyl 10 ай бұрын
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
@mrrishiraj88
@mrrishiraj88 10 ай бұрын
Good day greetings
@cripz4203
@cripz4203 10 ай бұрын
Our company uses AWS Chalice as the default tech stack now in almost all projects. 😅
@ashishkumarmishra3570
@ashishkumarmishra3570 10 ай бұрын
What is the algorithm working behind the load balancer forwarding requests to the POST service having the least load?
@gkcs
@gkcs 10 ай бұрын
There are many: weighted round robin, least connections, etc...
@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
@r0075h3ll
@r0075h3ll 5 ай бұрын
Is it the Controller that is referred to as API Gateway, or are these two completely different? If so, then how?
@girishanker3796
@girishanker3796 Ай бұрын
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)
@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
@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 ай бұрын
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.
@shabeebck3057
@shabeebck3057 5 ай бұрын
A this api gateway be netsjs ?
@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 ай бұрын
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.
@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?
@abhijeetsingh2933
@abhijeetsingh2933 10 ай бұрын
@@Elwacho1964 ? I didn't get it
What is API gateway really all about? Java Brains - Brain Bytes
8:56
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
API Gateway vs Load Balancer vs Reverse Proxy: when to use what?
9:06
Software Developer Diaries
Рет қаралды 7 М.
What is an API Gateway?
10:19
IBM Technology
Рет қаралды 289 М.
What is an API and how do you design it? 🗒️✅
15:26
Gaurav Sen
Рет қаралды 710 М.
Google system design interview: Design Spotify (with ex-Google EM)
42:13
IGotAnOffer: Engineering
Рет қаралды 997 М.
20 System Design Concepts Explained in 10 Minutes
11:41
NeetCode
Рет қаралды 883 М.
What's an Event Driven System?
14:59
Gaurav Sen
Рет қаралды 306 М.
What is an API Gateway?
10:47
Defog Tech
Рет қаралды 690 М.