Api-Gateway
what is an Api?
Api stands for Application Programming Interface, which has a set of rules and protocols which different applications can communicate with each other.
Api-Gateway:
Api-Gateway is servers as a centralized entry point for managing and routing the request from client side to an appropriate backend service or microservice's.
Features of Api-Gateway:
1.Filters: Api-Gateways uses filters to validate the request from client.
2.Routers: Router will help to identify the microservices in backend and it passes the client request to the that microservice.
3.Load balancers: when multiple requests are communicates with our back-end rest Api then load balancers will sends the request to multiple instances of our microservice.
4.Security: Api-Gateway will provide the security to our microservices, it provides the Authentication which means verifying the user credentials.
5.Caching: It can help to improve the performance by storing frequently accessed data and reducing the need to fetch it from the backend every time.it reduces the round-trip time.
6.Logging and Monitoring: Logging will maintain the log files which has the details about the incoming requests and responses, Monitoring is used to tracking the health of the application and identifying the issues in the application.
7.Error handling: When an error occurs in the backend APIs, the API Gateway can intercept and handle that error. It then provides a response error in a format that is understandable and consistent for the client application.