API Gateway is an API management tool that stands between clients and backend servers / microservices. The main function of API Gateway is to receive the request from the client and forward it to the appropriate service.
API Gateway works as a reverse proxy that receives API requests and redirects them to appropriate services according to various rules. API Gateway request limitation, statistics, authentication etc. it builds a top layer in front of your actual API servers by taking over various frequently used functions.
Since the access to the services that undertake the functional responsibility piecemeal will be indirectly through the API gateway, identity and authorization verification operations can only be configured on the API gateway.
Detailed logging can be made about the requests made to the services, so that which service, by whom, how intensely it functions, etc. such as statistical information.
It can cache the outputs produced as a result of the requests coming to the services through the API gateway, thus reducing the service costs.
The addresses of the services can be encapsulated differently and the clients can be directed to the relevant main routes through this capsule.