Skip to main content

API gateway vs API management: what the words mean and what you actually buy

The gateway is the data plane that enforces rules on traffic. Management is the console, Environments, roles, audit and analytics around it.

By Selim Çalık Guides

What is the difference between an API gateway and API management?

An API gateway is the data plane: the servers that receive API traffic, apply rules to it and forward it to backends. It answers the question “what happens to a request”.

API management is everything around that data plane that lets an organization run it: who may change the rules, in which Environment, with what record, and what the traffic looked like afterwards. It answers “who changed what, where, and how is it going”.

Vendors use the two words loosely, and some products are one layer sold as both. This article separates them on a real G8 install, where the two layers are visibly different things: the G8 engine clusters are the gateway, and the G8 console is the management.

The gateway: rules on the request path

Open any Route’s Plugins tab in the console and the data plane is drawn as a list. The global rules of the Environment run first, then the Route’s own Plugins by priority, then the request reaches the Upstream. On the Route below, key-auth identifies the caller and limit-count counts per caller before the request reaches the orders backend.

The Request path card of the orders-api Route: the global rules first, then key-auth and limit-count by priority, then the Upstream orders-backend This is the gateway. Everything on this card runs on the engine for every request, whether or not the console is open.

That is the whole of what a gateway does: match, check, rewrite, forward, record. A gateway with no management layer still does all of it. It just has to be configured by hand, by one person at a time, with no record. For one team with one cluster and no one asking who changed what, that is enough.

Management: the console around the gateway

Environments

A management layer starts by admitting that there is more than one gateway. In G8, an Environment is one engine cluster with its own address, its own observability stores and its own members. The switcher at the top of the console lists them with their engine version and reachability; everything below it, Routes, Consumers, Analytics, the audit log, is scoped to the one you chose.

The Environment switcher menu: Staging and Production, each with its engine version and Reachable status, and the links Manage environments and Add environment Two gateways, one console. A change in Staging touches nothing in Production until someone copies it there.

Promotion is a management feature too: a Route is copied from one Environment to another through a dialog that shows what the copy will change and which secrets it leaves behind. The gateway itself has no notion of “the same Route in another cluster”.

Roles

A gateway’s configuration API has one key, and whoever holds it can do anything. A management layer replaces that with roles. G8 ships four built-in ones, Platform administrator, Environment administrator, Editor and Viewer, and custom roles can be made from them. A role is a grid of resources against View and Manage; the Editor below manages every gateway object, from Routes to Global rules, reads Certificates, Secrets and the Plugin catalog without changing them, and has no access to the audit log, Analytics, Traffic Explorer or request bodies.

The permission grid of the built-in Editor role: View and Manage ticked for Routes, Services, Upstreams and Consumers, View only for Certificates and Secrets, nothing for Audit log, Analytics, Traffic Explorer, Request bodies and Alerts The grid is per Environment. The same person can be an Editor in Staging and a Viewer in Production.

A role is enforced on every request to the console’s API, not only in the menu: a Viewer who sends a change by hand receives 403 and the permission that was missing, and the attempt is written down. Who changed what walks through that refusal.

Audit

The gateway records traffic. Management records changes. Every save in the G8 console is an audit record with the actor, the time, the Environment, the object and the configuration before and after, with secrets masked; a refused save is a record too, marked Failed or Denied with the reason. The platform audit log below reads across every Environment, with the Environment as a column and a filter; each Environment also has a log of its own.

The platform audit log: rows for Route updates in Staging, an Environment update and a global rule in Production, and a sign-in, each with the actor, the action, the target and the Environment Who, when, what, and where. The data plane never knew these changes were made by anyone in particular; the management layer did.

Analytics and request records

The gateway produces metrics and log lines. Management turns them into answers: requests by status class per Route, response time percentiles, the change markers from the audit log drawn on the same chart, and one record per request in Traffic Explorer with the Consumer, the node that answered and the masked headers. G8 reads these from your own Prometheus and Elasticsearch or OpenSearch; the Environment form holds their addresses.

What you actually buy

When a product is called an API gateway, check whether the management layer exists and what it covers. The questions that separate the two layers:

QuestionGateway aloneWith management
Who may change a Route?Whoever holds the admin keyA role, per Environment
What changed last Tuesday?Nothing is keptThe audit record, before and after
How does Staging reach Production?By handA copy with a preview of the change
How many 4xx did the orders API return today?A query against raw metricsA card on the Route’s Analytics tab
Which agent made that tool call?A log line, if logging is onA request record with the Consumer

G8 sells the two together: the engine clusters are the gateway, and the console is the management, running in your infrastructure next to them. What each page of the console does is on API Gateway › One console.

What to do next

Written by
Selim Çalık
Founder, G8
Next step

See G8 in a demo

We’ll show you the console with APIs and AI traffic like yours, and answer the questions these articles leave open.

  1. 01Demo
  2. 02Proof of conceptOn Docker for a quick start, or on the infrastructure you plan to run G8 on.
  3. 03LicenseWe prepare a quote for your edition and nodes, and you receive a signed license file.