API Gateway

An API gateway is a programming layer that sits between a client and a collection of microservices. It acts as a single point of entry for a defined group. API stands for application program interface and is a set of routines, protocols, and tools for building software applications. An API gateway acts as a reverse proxy to accept all API calls, collect the services required to fulfill them, then return the appropriate result.

For enterprises, APIs are deployed using an API gateway because it can handle common tasks that are used across a system of API services such as user authentication, rate limiting, and statistics. This is valuable for when clients built with microservices make use of multiple, contrasting APIs.

An API gateway can handle requests in one of two ways: either by using multiple microservices and combining the results to determine the best path, or by routing/proxying the request to the appropriate service. It can translate public web protocols and web-unfriendly protocols that are internally used.

API gateway uses

An API gateway is used to separate the client interface from a backend implementation so that clients have a simple and dependable experience regardless of the complexity. Below are possible uses for an API gateway:

  • Protecting your API from overuse and misuse
  • Understanding how individuals are using your API
  • Providing mobile clients with an endpoint to retrieve all product details with a single request
  • Monetizing an API
  • Adding new API services and replacing others while keeping existing services in the same place

API gateway drawbacks

Along with everything else, an API gateway is another system that must be developed, deployed, and managed, which increases complexity and requires a learning curve. Response time can also be slower because of the additional movement through the gateway.

Webopedia Staff
Webopedia Staff
Since 1995, more than 100 tech experts and researchers have kept Webopedia’s definitions, articles, and study guides up to date. For more information on current editorial staff, please visit our About page.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.

Related Articles

Virtual Private Network (VPN)

A virtual private network (VPN) encrypts a device's Internet access through a secure server. It is most frequently used for remote employees accessing a...

Gantt Chart

A Gantt chart is a type of bar chart that illustrates a project schedule and shows the dependency between tasks and the current schedule...

Input Sanitization

Input sanitization is a cybersecurity measure of checking, cleaning, and filtering data inputs from users, APIs, and web services of any unwanted characters and...

IT Asset Management Software

IT asset management software (ITAM software) is an application for organizing, recording, and tracking all of an organization s hardware and software assets throughout...

ScalaHosting

ScalaHosting is a leading managed hosting provider that offers secure, scalable, and affordable...

HRIS

Human resources information system (HRIS) solutions help businesses manage multiple facets of their...

Best Managed Service Providers...

In today's business world, managed services are more critical than ever. They can...