简体   繁体   中英

What is the difference between a REST API and an API gateway?

I understand as REST API as a server that listens to endpoints that are filtered by HTTP verbs like POST, GET, DELETE, etc. Googling for differences didn't return useful resources. But I read that an API Gateway is used with microservices. Are these things actually the same, or maybe one is a subset of the other?

I understand as REST API as a server that listens to endpoints that are filtered by HTTP verbs like POST, GET, DELETE, etc. Googling for differences didn't return useful resources. But I read that an API Gateway is used with microservices. Are these things actually the same, or maybe one is a subset of the other?

Well to clearly understand an API gateway, I think we can understand how it came about and why it is important. So before the advent of APIs, applications were mainly built using the monolith approach where all software components were interconnected. But as enterprise-level systems adopt microservices and APIs, multiple issues like security and load balancing arise.

These issues can be solved by introducing an API Gateway which is an intermediate level between a client and an API. This is an overview of what is an API Gateway but this article dives deep into discussing what an API gateway is and why it is essential in a cloud-native era.

https://api7.ai/blog/what-is-an-api-gateway/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM