1.

Explain the API gateway and why one should use it?

Answer»

An API Gateway is a service which sits in front of the exposed APIs and acts as an entry point for a group of MICROSERVICES. Gateway also can hold the minimum logic of routing calls to microservices and also an aggregation of the response.

  • A gateway can also authenticate requests by verifying the identity of a user by routing each and every request to authentication service before routing it to the microservice with authorization details in the token.
  • Gateways are also responsible to LOAD balance the requests.
  • API Gateways are responsible to rate limit a certain type of request to save itself from blocking several kinds of attacks etc.
  • API Gateways can whitelist or blacklist the source IP Addresses or given domains which can INITIATE the call.
  • API Gateways can also provide plugins to cache certain type of API RESPONSES to boost the performance of the application.


Discussion

No Comment Found