Interview Bootcamp
Vote

0% completed

Usage of API gateway

A microservices architecture has many small independent services, and managing the communication between all of them and every client gets complicated fast. A gateway is where that complexity goes.

There are twenty things people use one for. They fall into four groups.

Deciding Where the Request Goes

Request routing. Directing each incoming request to the appropriate backend service

.....

.....

.....

Like the course? Get enrolled and start learning!
Ricardo Franco

Ricardo Franco

· 3 years ago

If the API Gateway is the router, why do clients need service discovery to access the services?

Show 1 reply
Ricardo Franco

Ricardo Franco

· 3 years ago

Could you explain API Versioning in more detail? Would it mean the API Gateway routes the request to a different pool of microservices based on the version?

Show 1 reply
Oui Key

Oui Key

· 2 years ago

Isn't API gateway a basically microservice in and of itself that send requests to all these other services with custom logic?

Ricardo Franco

Ricardo Franco

· 3 years ago

The API gateway can be used to implement a circuit breaker pattern, which can help to prevent a single failed microservice from bringing down the entire system

How a single failed microservice can bring down the entire system? Is it in the case of Service Aggregation?

Show 3 replies
S

Shishir

· 2 years ago

Is there some difference between the two?

Show 1 reply
S

Shishir

· 2 years ago

The first chapter under "API Gateway" section clearly calls out that an API Gateway and a Load Balancer are different -

"An API gateway and a load balancer are both types of infrastructure that can be used in a computer network to manage incoming requests and enhance the performance of a system. However, they work in different ways and serve different purposes."

However, this chapter lists "Load Balancing" as one of the uses for an API Gateway.

Can you please elaborate on this? Does this mean that an API Gateway is a Load Balancer with routing, rate limiting, business logic, and other capabilities?

Show 4 replies
S

shivangkumarjha

· 7 months ago

Suppose the system has both a load balancer to distribute the load to different servers, and an api gateway to route API requests to the suitable backend system. Typically which sits in front for the client - the LB or the API Gateway.

Or having API gateway obviates LB completely ?

Show 1 reply
Vaishnavi Ainapure

Vaishnavi Ainapure

· 6 months ago

Hi,

I have following couple of questions

How does an API Gateway perform load balancing? Why do we need dedicated Load Balancers if API Gateways can balance load? What is difference between Azure Application Gateway or an API Gateway? What are Internal Load Balancers (ILBs) do Azure API Gateway and App Gateway use them internally

Show 1 reply
Alan Esparza

Alan Esparza

· 6 months ago

thanks for all this info maybe code samples help understanding the methods

Show 1 reply