API gateway: plainly explained.

An API gateway is the single entry point that routes requests to backend services and manages security, limits and logs. See how it works and when to use one.

Webapp · Updated Nov 7, 2026

DEFINITION

An API gateway is a single entry point that routes client requests to backend services and handles authentication, rate limiting and monitoring.

CATEGORY

Webapp

RELATED

API, REST API

Summarize this page with AI

01

What is an API gateway?

An API gateway is a server that sits between client applications and your backend services. Instead of a mobile app or website calling ten different services directly, it sends every request to one address. The gateway checks who is calling, applies limits, routes the request to the right service and returns the response. It becomes the front door of your application programming interface layer.

The pattern became common with microservices, where a single screen may depend on many small services. Without a gateway, each client must know every service address, handle each authentication scheme and cope with each failure. The gateway removes that burden from the client.

02

How an API gateway works

When a request arrives, the gateway runs it through a chain of steps before any backend code executes.

  • Authentication and authorisation: validate API keys, JWT tokens or OAuth access.
  • Rate limiting and throttling: cap requests per client to protect services from abuse.
  • Routing: map a public path to an internal service.
  • Transformation: rewrite headers, merge responses or convert formats.
  • Caching: serve repeated responses without hitting the backend.
  • Logging and metrics: record every call for monitoring and billing.

A simplified routing rule looks like this:

GET /api/orders/* → orders-service:8080
GET /api/users/* → users-service:8081
policy: require_jwt, rate_limit=100/min

03

Main features and benefits

A gateway centralises concerns that would otherwise be repeated in every service. Security rules live in one place, which reduces the risk of a forgotten check. Clients get a stable contract even when services behind it change. Teams can version an API, retire old routes and roll out changes gradually. Observability improves because every call passes through one point that can log latency, errors and usage.

Cross-cutting concerns it handles

TLS termination, CORS headers, request validation, IP allow lists and response compression are typical examples. Handling them at the edge keeps the services themselves simple.

04

API gateway vs reverse proxy vs load balancer

These components overlap, which causes confusion. A gateway is application-aware, while the others work at a lower level.

Component
API gatewayMain roleAuth, limits, routing, transformationUnderstands the API?Yes
Reverse proxyMain roleForward traffic, hide servers, cacheUnderstands the API?Partly
Load balancerMain roleSpread traffic across instancesUnderstands the API?No
05

When to use one, and when not to

A gateway pays off when you expose several services, serve multiple client types, need consistent security or sell API access. It is often unnecessary for a small application with a single backend, where it adds latency, cost and one more component to operate. Remember that a gateway is also a single point of failure, so it should run in a redundant setup.

  • Keep business logic out of the gateway.
  • Version your routes from day one.
  • Monitor latency added by each policy.
  • Document the public contract, for example with OpenAPI.
06

Common options

Managed gateways exist at every major cloud provider, and open source gateways such as Kong run on your own infrastructure. For lighter needs, an edge platform like Cloudflare can enforce authentication and rate limits in front of any backend, and low-code backends such as Xano expose managed API endpoints with built-in access control.

07

API gateways at BeBranded

When we build web applications that rely on several services, we decide early whether a gateway is justified, then design routing, security and monitoring so the product scales without rework. Learn more about our web app development service.

FAQ

Questions about API gateway.

Another question?

Write to us
What is an API gateway?
An API gateway is a single entry point that receives client requests, applies security and limits, routes them to the right backend service and returns the response.
What is the difference between an API gateway and a reverse proxy?
A reverse proxy forwards traffic and hides servers. An API gateway adds API-specific features such as authentication, rate limiting, request transformation and usage analytics.
Do I need an API gateway for microservices?
Usually yes. With many services, a gateway gives clients one address and centralises security and monitoring instead of repeating them in each service.
Does an API gateway replace a load balancer?
No. A load balancer spreads traffic across instances of one service, while a gateway routes by path and applies policies. They are often used together.
Can an API gateway slow down my application?
It adds a small amount of latency, since each request passes through an extra hop and policy checks. Caching and keeping policies lean limit the impact.
Is an API gateway a single point of failure?
It can be if run as a single instance. Deploy it redundantly across zones and monitor it closely to avoid that risk.

Related

Related terms, and where to go next.

BeBranded
AI & automation

Webflow MCP: connect an AI agent to your site

Webflow MCP: what it is, what it enables, how to install it, concrete use cases, v1.2 updates, and limitations to know. Complete guide.

Read the article
Webflow + Claude AI: the official connector (2026 guide)
AI & automation

Webflow + Claude AI: the official connector (2026 guide)

Webflow + Claude: what the official MCP connector launched in February 2026 actually does, its real limits, and how to use it safely.

Read the article
BeBranded
Development

Website maintenance pricing in 2026: costs, retainers and what a contract should include

What website maintenance costs in 2026, by type of service and by platform, with real public prices, what a maintenance contract must include, and how to avoid paying for a retainer you do not use.

Read the article

Let’s talk

Tell us what you want to build.

Thirty minutes with the people who will work on your project. You leave with a clear view of the scope, the timeline and the next steps.

What happens next

  1. 1A 30-minute callWe listen to your goals, your constraints and your context.
  2. 2A clear scopeWe map what is worth doing first, and what it takes.
  3. 3A costed proposalYou decide, with no commitment and no sales pitch.