Tech World With Milan Newsletter

Tech World With Milan Newsletter

Share this post

Tech World With Milan Newsletter
Tech World With Milan Newsletter
What is API Gateway?
Copy link
Facebook
Email
Notes
More
User's avatar
Discover more from Tech World With Milan Newsletter
Insights into a beautiful world of Software Engineering, simplified. Join his community of 350,000+ readers across different mediums.
Over 44,000 subscribers
Already have an account? Sign in

What is API Gateway?

Dr Milan Milanović's avatar
Dr Milan Milanović
Feb 16, 2023
12

Share this post

Tech World With Milan Newsletter
Tech World With Milan Newsletter
What is API Gateway?
Copy link
Facebook
Email
Notes
More
1
Share

An API management tool known as an API Gateway sits between a client and a group of backend services. It performs the function of a reverse proxy by accepting all application programming interface (API) calls, aggregating the different services needed to fulfill them, and returning the right outcome.

Thanks for reading Tech World With Milan Newsletter! Subscribe for free to receive new posts and support my work.

By using API gateways, most enterprise APIs are deployed. User authentication, rate limits and statistics are common duties that API gateways take care of on behalf of a system of API services.

An API service receives a remote request and responds to it. But in reality, nothing is ever that easy. When you host large-scale APIs, take into account various concerns:

  • You use a rate limitation system and an authentication service to safeguard your APIs against abuse and excessive use.

  • You implemented analytics and monitoring tools because you want to know how people use your APIs.

  • You should link to a payment system if your APIs are monetized.

  • If you've chosen a microservice architecture, a single request can need calling hundreds of different programs.

  • Your clients will still want to be able to access all your services in one location even when you add new API services over time and retire others.

So, how does it work in general:

1. API gateway receives an HTTP request from a client.
2. When received it validates the request first.
3. API gateway checks with an identity provider about authentication/authorization.
4. The rate-limiting rules are then applied to the request.
5. Then, the API gateway finds the backend services and routes the request.

API Gateway

Also to this, the API gateway can handle faults (circuit breaker), but also do logging, caching and monitoring.

Also, we can see API Gateway as a superset of a Reverse Proxy. It is server that resides in front of backend servers and transfers client requests to these servers, typically used to increase security, speed, and dependability. A reverse proxy receives a request from a client, forwards it to another server, and then returns it to the client, giving the impression that the first proxy server handled the request. These proxies ensure that users don't access the origin server directly, giving the web server's anonymity. They are usually used for Load balancing, where we need to deal with the flow of incoming traffic, so we may distribute that traffic between multiple back-end servers or we can use them for caching too. An example of reverse proxy services are: Apache Proxy, Nginx or IIS.

Reverse Proxy

An examples of API Gateways are:

  • Apigee (now part of Google Cloud).

  • Express Gateway.

  • Tyk API Gateway.

The major public cloud providers offer API gateway tools specific to their platforms: Amazon API Gateway, Azure API Gateway, and Google Cloud API Gateway.


Thanks for reading Tech World With Milan Newsletter! Subscribe for free to receive new posts and support my work.

Strahinja Ducic's avatar
Gehan's avatar
Ramki  Balakrishnan's avatar
Jawahar's avatar
Maria's avatar
12 Likes∙
1 Restack
12

Share this post

Tech World With Milan Newsletter
Tech World With Milan Newsletter
What is API Gateway?
Copy link
Facebook
Email
Notes
More
1
Share

Discussion about this post

User's avatar
Learn things that don't change
And take a look into books I recommend you to read in 2024. (34 books)
May 16, 2024 • 
Dr Milan Milanović
986

Share this post

Tech World With Milan Newsletter
Tech World With Milan Newsletter
Learn things that don't change
Copy link
Facebook
Email
Notes
More
21
How to become an expert in anything?
Becoming an expert in software engineering or any other field isn't just about combining years of experience or learning the latest frameworks. Learn…
Aug 22, 2024 • 
Dr Milan Milanović
235

Share this post

Tech World With Milan Newsletter
Tech World With Milan Newsletter
How to become an expert in anything?
Copy link
Facebook
Email
Notes
More
9
Books Every Software Engineer Must Read in 2023.
You probably already noticed that I'm a big fan of reading.
Jun 8, 2023 • 
Dr Milan Milanović
262

Share this post

Tech World With Milan Newsletter
Tech World With Milan Newsletter
Books Every Software Engineer Must Read in 2023.
Copy link
Facebook
Email
Notes
More
7

Ready for more?

© 2025 Dr Milan Milanović
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More

Create your profile

User's avatar

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.