API Gateway

About

An API Gateways is a management tool, inserted between Clients and the Backend API Services, acting as a Single Entrypoint.

Drawing

Usually an API Gateway acts in the Network Layer, and can have these responsabilities:

  • Abuse control (Microservices);

  • Standardized Authentication/Authorization;

  • Log control;

  • API management (routing);

  • Standardized Metrics (ops team);

  • Distributed tracing.

Advantages
Disadvantages

Standardization of orthogonal features. (logging, security)

It needs extra care, regarding availability, as it it a single entrypoint.

It helps on company's network governance.

As a single entrypoint, it facilitates management.

Applications as API Gateway

Nginx

Nginx can act as an API Gateway being able to handle, routing, load balancing, encryption, rate limiting, security, basic authentication and others.

It is really good for handling routing as it is capable of handling concurrent requests.

Not recommended for Enterprise applications, as some important features are not available by default.

Kong

Kong API Gateway is an Opensource and Micro Gateways, check more on its docs.

Types of Gateways

Enterprise Gateways

Micro Gateways

Last updated