Interview Bootcamp
Vote

0% completed

​

Introduction to API Gateway

A shopping app shows one home screen. To build it, the app needs the user's profile, their recent orders, and some product recommendations. Each of those comes from a different backend service, and each service has its own address.

So the phone app makes three separate calls to three addresses. Each service checks the user's login token with its own copy of the same code. And when the team moves the order service to a new address, every app must be updated.

This lesson explains the part that fixes these problems: the API gateway

.....

.....

.....

Like the course? Get enrolled and start learning!
Syed Mohammad Hassan

Syed Mohammad Hassan

· 6 months ago

My understanding is that:

A load balancer operates at the network level. Its only job is to distribute incoming traffic across multiple servers so no single server gets overwhelmed. It knows nothing about your API. it just sees "a request came in, which server should get it?" It uses strategies like round-robin, least-connections, or IP hashing.

An API gateway operates at the application level. It understands your API. It handles things like authentication/authorization, rate limiting, request routing to the correct microservice, SSL termination, request transformation, logging, and caching. Think of it as the "smart front door" for your API.

Show 2 replies
Sandeep Verma

Sandeep Verma

· 2 years ago

In some design there is gateway before API gateway . API gateway also has capability to load balance. What is recommended? .

Show 4 replies

Reading Progress

0%


Vote for new content