What is an API gateway? | Definition from TechTarget (2024)

By

  • Paul Kirvan
  • James Montgomery,Senior Features Editor

What is an API gateway?

An API gateway is a software pattern that sits in front of an application programming interface (API) or group of microservices to facilitate requests and delivery of data and services. Its primary role is to act as a single entry point and standardized process for interactions between an organization's apps, data and services and internal and external customers. The API gateway can also perform various other functions to support and manage API use, from authentication to rate limiting to analytics.

These broad capabilities make the API gateway an essential piece of an enterprise API strategy.

What is an API gateway? | Definition from TechTarget (1)

How does an API gateway work?

APIs allow separate applications to communicate with one another and exchange data within and outside a business. The API gateway provides a focal point and standard interface to perform these activities. It receives routing requests from internal and external sources that are called API calls and packages multiple requests, routes them to the appropriate API or APIs, and receives and delivers the responses to the user or device that made the request.

API gateways are also key to a microservices architecture, in which data requests invoke numerous applications and services that use multiple, disparate APIs. Here the API gateway's role is similar: Provide a single point of entry for a defined group of microservices and apply policies to determine their availability and behavior.

API gateways often handle other functions involved with APIs and microservices:

  • Protocol translation.
  • Service discovery optimization.
  • Basic business logic and metrics.
  • Authentication and security policy enforcement.
  • Stabilization and load balancing.
  • Cache management.
  • Monitoring, logging and analytics.
  • Access control.
  • Scalability of workloads.

Who uses API gateways and why?

The API gateway is the focal point for API messaging, organizing and streamlining API activity and exchanges with internal and external customers. The gateway provides API management and oversight that lets an organization see and control a broad scope of APIs and integrations centrally, rather than tracking and managing APIs individually.

This article is part of

Guide to building an enterprise API strategy

  • Which also includes:
  • 5 major reasons to adopt an API management platform
  • 12 API security best practices to protect your business
  • API testing checklist and best practices
Download1Download this entire guide for FREE now!

API gateway use cases typically include real-time monitoring and logging capabilities to record and analyze calls and responses ensure security and evaluate errors. Gateways also support functionality that governs APIs. For example, policy managers use logical statements operated through an API gateway to determine the API's availability and behavior, such as how it controls the flow of data or handles throttling and throughput of API calls.

Organizations that have adopted a microservices-based architecture similarly rely on API gateways to facilitate communications among those services. API gateways also help streamline B2B integration as an alternative to legacy approaches such as electronic data interchange services.

API gateway vs. API proxy

An alternative to the API gateway is an API proxy, which is a subset of an API gateway that provides minimal processing for API requests. The API proxy handles communication -- including protocol translation -- between specific software platforms -- such as a proxy endpoint and target API.

An API proxy can also have traffic management capabilities, controlling the flow of traffic between sending and receiving points. However, API gateways typically have better performance analysis and monitoring capabilities.

What is an API gateway? | Definition from TechTarget (2)

API gateway vs. service mesh

Like an API gateway, a service mesh facilitates communications to and from an enterprise's services with some load balancing and other functionality. However, a service mesh typically handles internal communications, and its role is at the network management level; an API gateway facilitates interactions with external users and devices as well as internal sources, and resides at the application layer.

The roles of API gateways and service mesh can be complementary. For example, API gateways can be an entry point into a mesh, and some API gateways offer plugins to form a service mesh themselves.

API gateway benefits

An API gateway's primary benefit is in standardizing and centralizing delivery of services through APIs or microservices. Beyond this, API gateways help secure and organize an organization's API-based integrations and API ecosystem in several ways. The following are some of those benefits:

  • Simplify services delivery. API gateways can combine multiple API calls to request and retrieve data and services, which reduces the volume of requests and traffic. This streamlines the API process and improves the user experience and workflows, particularly for mobile applications.
  • Provide flexibility. API gateways are highly configurable. Developers can encapsulate the internal structure of an application in multiple ways, to invoke multiple back-end services and aggregate the results.
  • Extend legacy applications. Enterprises that rely on legacy applications can use API gateways to work with those apps and extend their functionality. API gateways can be used as an alternative to broader, more complicated and expensive migration.
  • Contribute to monitoring and observability. Most organizations rely on specific tools for monitoring activity through APIs, but an API gateway can help assist these efforts. Gateway logs can help pinpoint an issue during a monitoring failure event.
  • Impact of artificial intelligence (AI). AI can enhance API gateway performance and automation. For example, it can examine performance data, identify trends for further analysis and potentially boost gateway performance.

API gateway challenges

The API gateway is the gatekeeper between API consumers and providers. That role presents unique challenges, such as the following:

  • Reliability and resilience. Any impairment or hindrance to the API gateway's functionality can cause associated services to fail. In addition, an API gateway is an extra process step between customers and applications or data. Enterprises must be wary of adding features that affect performance or increase latency.
  • API security. The API gateway is a trusted source that touches many parts of an enterprise's business. If it's compromised, this is potentially a serious and far-reaching security problem. Businesses should separate external-facing interfaces from internal APIs and systems, and define authentication and authorization parameters.
  • Complexity and dependencies. Developers must update the API gateway whenever an API or microservice is added, changed or deleted. This is particularly challenging in a model where a few applications could become dozens or hundreds of microservices. Creation of and adherence to API and microservices design rules can help mitigate these problems.
  • AI risks. Just as AI's emergence in technology promises increased benefits, it also carries risks. For example, AI elements must be properly instructed regarding their activities; errors in such instructions could negatively impact gateway performance.

Types of API gateway products?

Given the importance of the API gateway in today's API economy, many providers offer API gateways either as standalone tools or functionality bundled into broader API management platforms. Examples of API management platform vendors that incorporate some kind of API gateway functionality include Akana by Perforce, Cloudflare, MuleSoft, Postman, Tibco Software and Workato.

Organizations also can separately buy and use API gateway tools. Examples include Apigee (part of Google Cloud), Express Gateway, Gloo API Gateway, Goku API Gateway, Kong Gateway, KrakenD API Gateway, Ocelot API Gateway, Oracle API Gateway and Tyk API Gateway.

The major public cloud providers offer platforms that manage API lifecycles: AWS API Gateway, Google Cloud Endpoints and Microsoft Azure API Management. They also offer API gateway tools specific to their platforms.

Factors to consider when evaluating an API gateway

Businesses should weigh several criteria as they choose an API gateway, including the following:

  • Current vs. long-term requirements. Business requirements must be factored into any technology investment decision. Current API gateway deployments might be satisfactory, but when planning API gateways, it's important to consider potential future requirements, such as adding new APIs.
  • Proprietary vs. open source. A business evaluating a vendor's API gateway might already use other products from that vendor. Examples include Oracle, or the major public cloud providers. By contrast, many enterprises are comfortable with open source tools and in-house support.
  • Architecture. Some API gateway tools emphasize simplicity, while others emphasize extensibility. They also often support different database systems, such as Cassandra, PostgreSQL, MongoDB or Redis. As stated above, businesses that already rely on a particular cloud provider might prefer that provider's API gateway.
  • Customization. Some API gateways, particularly open source options, might offer more customization options and that requires in-house expertise. However, some API gateways rely on different programming languages, such as Golang or Lua. Ensure that IT staff skills line up with such requirements. Plugins can partly mitigate this issue.

Asking the right questions is important when selecting an API gateway and related tools. Learn more about popular API gateway tools.

This was last updated in February 2024

Continue Reading About API gateway (application programming interface gateway)

  • How API gateways improve API security
  • What DevOps teams need to know about API management
  • The management approach for internal vs. external APIs
  • The value of APIs and microservice gateway tools

Related Terms

data analytics (DA)
Data analytics (DA) is the process of examining data sets to find trends and draw conclusions about the information they contain.Seecompletedefinition
middleware
Middleware is software that bridges the gap between applications and operating systems by providing a method for communication ...Seecompletedefinition
RFM analysis (recency, frequency, monetary)
RFM analysis is a marketing technique used to quantitatively rank and group customers based on the recency, frequency and ...Seecompletedefinition
What is an API gateway? | Definition from TechTarget (2024)

FAQs

What is an API gateway? | Definition from TechTarget? ›

An API gateway is a software pattern that sits in front of an application programming interface (API) or group of microservices to facilitate requests and delivery of data and services.

What is an API gateway in simple terms? ›

An API gateway is an application programming interface (API) management tool that serves as a single point of entry into a system, sitting between the application user and a collection of backend services.

What is my API gateway? ›

An API gateway is a data-plane entry point for API calls that represent client requests to target applications and services. It typically performs request processing based on defined policies, including authentication, authorization, access control, SSL/TLS offloading, routing, and load balancing.

Which of these descriptions best explains what an API gateway does? ›

An API gateway uses HTTP requests to GET, PUT, POST and DELETE data. An API gateway is used when the owner of a network-accessible service gives universal access to its consumers. An API gateway sits in front of an API and acts as a single point of entry for a defined group of microservices.

What is API gateway method response? ›

An API method response encapsulates the output of an API method request that the client will receive. The output data includes an HTTP status code, some headers, and possibly a body.

What is an API gateway for dummies? ›

An API Gateway acts as a mediator between client applications and backend services in microservices architecture. It is a software layer that functions as a single endpoint for various APIs performing tasks such as request composition, routing, and protocol translation.

What is an example of a gateway? ›

Gateways can take several forms and perform a variety of tasks. Examples of this include: Web application firewalls- This type filters traffic to and from a web server and looks at application-layer data. Cloud storage gateways- This type translates storage requests with various cloud storage service API calls.

Why do you need an API Gateway? ›

API Gateway provides WebSocket API management functionality such as the following: Monitoring and throttling of connections and messages. Using AWS X-Ray to trace messages as they travel through the APIs to backend services. Easy integration with HTTP/HTTPS endpoints.

What is the difference between API and API Gateway? ›

API Design: Creating well-defined endpoints and specifying the API's function, including request and response structures. API Gateway: Serving as the entry point for API requests, responsible for tasks like routing, load balancing, and request and response transformation.

What is an API Gateway pattern? ›

The pattern provides a reverse proxy to redirect or route requests to your internal microservices endpoints. An API gateway provides a single endpoint or URL for the client applications, and it internally maps the requests to internal microservices.

What are the stages in an API Gateway? ›

A stage is a named reference to a deployment, which is a snapshot of the API. You use a Stage to manage and optimize a particular deployment. For example, you can configure stage settings to enable caching, customize request throttling, configure logging, define stage variables, or attach a canary release for testing.

How does API Gateway handle authentication? ›

Basic authentication is a simple authentication scheme built into the HTTP protocol. With basic authentication, a client sends an HTTP request with a username and password encoded in base64. Typically, the API gateway validates the username and password against a predefined list of users and passwords.

Why do we need an API gateway? ›

API Gateway provides WebSocket API management functionality such as the following: Monitoring and throttling of connections and messages. Using AWS X-Ray to trace messages as they travel through the APIs to backend services. Easy integration with HTTP/HTTPS endpoints.

What is the difference between API and API gateway? ›

API Design: Creating well-defined endpoints and specifying the API's function, including request and response structures. API Gateway: Serving as the entry point for API requests, responsible for tasks like routing, load balancing, and request and response transformation.

Is API gateway the same as load balancer? ›

The API gateway serves as the front door, managing security, routing, and transformations, while the load balancer distributes traffic efficiently across the backend servers behind it. This creates a robust and scalable architecture that delivers a seamless user experience.

How do I create a simple API gateway? ›

Create an HTTP API by using the AWS Management Console
  1. Open the API Gateway console .
  2. Choose Create API.
  3. Under HTTP API, choose Build.
  4. Choose Add integration, and then choose an AWS Lambda function or enter an HTTP endpoint.
  5. For Name, enter a name for your API.
  6. Choose Review and create.
  7. Choose Create.

References

Top Articles
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 5904

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.