Open In App

What is the API Gateway Pattern ?

API – It stands for “Application Programming Interface”. In general APIs are built-in libraries or collections of libraries that perform some specific task or function. In general, we use API to get connected with other web applications. We generally connect with other web applications by following certain protocols, methods. We can also use the data through the API that is used by another web application or software through the use of API of that software. In other words, we can exchange our data through API with other web applications/software.

What is API Gateway Pattern: The API Gateway Pattern in some cases stands for “Backend for frontend”. It basically the entry gate for taking entry in any application by an external source. The pattern which is going on in a programmer’s mind while they are making the client’s application. It acts as a medium between the client applications and microservices. For example-Netflix is the most famous example of an API gateway.



Use of the API Gateway Pattern: The main responsibility of this pattern is that it routes the request means basically provide a road map for how our request goes, approve or may be canceled, API  composition, and app authentication.

 



How API Gateway Handles the Client requests:

It helps in preventing our software from malicious cyber fault with its two different layers one is a common layer that is used for authentication among the client-side and the API layer. The layers secure us from attacks like XML Parser exploits, SQL injection, etc. It helps clients to get communicate very easily.

The architecture of API gateway –  It basically consists of two layers –

Advantages of API gateway pattern –

Disadvantages of API gateway pattern – 

Article Tags :