ArchitectureIntermediate

API Management: Gateway, Developer Portal, Monetization

DeveloperHat Team
19 min read

TL;DR

A gateway routes traffic; management turns an API into a product. Compare managed, self-hosted, and gateway-only paths — portal, quotas, and when to charge.

A gateway and API management are not the same purchase, even though vendors sell them in one box. A gateway routes a request, checks a token, and forwards it to a service. Management is everything around that moment: who is allowed to call, how much they may call, what version they are on, where they read the docs, and — eventually — what they pay. Teams that buy a gateway when they needed management end up building a portal, a key store, and a billing report by hand. Teams that buy full management when they needed a gateway pay a platform price for a proxy problem.

This article is the management-plane decision: what the four layers are, the three ways to buy or build them, what each costs in money and in operational load, and when an API earns a price tag at all. The short version up front: start with a gateway and a usage plan, add a portal the moment a second team or an outside developer depends on you, and add billing only when the API is a product with named customers. Everything below is the reasoning that makes those three sentences true.

API management: the gateway moves traffic, the plane around it runs the product Web app browser + SPA Mobile app iOS + Android Partner B2B, API keys Gateway auth · rate limit · routing Transform headers · payload · errors Policy quotas · WAF · caching Orders service Billing service Search service Portal, analytics, and billing sit beside the gateway — they are the management plane, not the proxy.

What "management" adds to a gateway

A gateway answers one question per request: may this call through, and where does it go? Management answers the questions around the request's whole life. There are four of them, and it helps to keep them separate because each one can be bought, built, or skipped independently.

The data plane is the gateway itself: routing, authentication, rate limiting, request and response transformation, caching, and logging. This is the only layer that sits in the request path, so it is the only layer whose latency and availability directly affect your users. Everything else can be down for an hour without a single API call failing — which is exactly why the data plane and the management plane should be separable in whatever you buy.

The management plane is where APIs are defined, versioned, and published: the OpenAPI document as the source of truth, lifecycle states (design, test, published, deprecated, retired), policies attached per API, and the analytics that say who calls what and how often. When this plane is good, publishing a new version is a reviewable change, not a Slack message and a prayer.

The developer experience layer is the portal: documentation generated from the spec, a try-it console, self-service key provisioning, sandbox environments, and a changelog developers actually read. A portal is not marketing. It is the difference between an API that scales to a hundred consumers and one that scales to the three developers who happen to know the person who wrote it.

The business layer is quotas, usage plans, and billing: per-consumer limits, overage rules, invoices, and the metering that feeds them. It only exists when the API is a product. Most internal APIs never need it, and adding it early is how a platform team turns a simple proxy into a billing system nobody asked for.

The honest test for whether you need management at all is the consumer count. One team calling its own services needs a gateway. Two teams, or one outside partner, needs a portal and keys. A public API with strangers signing up needs the whole stack. Buy the layer your consumer count justifies, not the one the vendor demo shows.

The three ways to get there

There are three honest paths, and the right one depends less on features than on where your team already lives.

Path 1: Managed, on your cloud

If your services already run on one cloud, the managed option is usually the cheapest to operate. AWS API Gateway splits into two products with different economics: HTTP APIs are the lean, low-cost option for serverless workloads, and REST APIs are the full-featured option with API keys, usage plans, request validation, caching, and WAF integration. AWS states HTTP APIs offer up to 71% cost savings and 60% latency reduction compared to REST APIs — which is why the default for a new JSON API should be HTTP, and REST only when you need the usage-plan features. AWS has also added native developer portals (API Portal) that build an inventory of the APIs behind API Gateway, load balancers, and CloudFront, with branded documentation portals and Cognito access control. The pricing that matters for the decision: HTTP APIs at $1.00 per million requests versus REST APIs at $3.50 per million, before data transfer.

Azure API Management is the same idea with a different pricing shape: a Consumption tier that is $0 base with the first 1 million calls a month free and $3.50 per million after that, then dedicated v2 tiers — Basic v2 at $150 a month with 10 million calls included, Standard v2 at $700 with 50 million included, and Premium v2 at $2,800 with unlimited calls — all list prices in East US as published on Microsoft's APIM pricing page. The step from Basic v2 to Standard v2 is the one that catches teams: it is nearly a fivefold jump, and it is driven by call volume and VNet integration, not by features you use every day.

Google Cloud's Apigee is the third managed option, aimed squarely at full lifecycle management with a pay-as-you-go model. It is the strongest choice when API governance is a compliance requirement rather than a convenience, and the most expensive to run casually.

Managed wins on operations: no gateway to patch, no control plane to keep alive, and the portal is included. It loses on portability and on the per-request bill, which grows linearly with your traffic and never stops. If you ever leave the cloud, the management layer does not come with you.

Path 2: Self-hosted open source

Kong Gateway and Gravitee are the two self-hosted platforms most teams actually evaluate, and they have moved in opposite directions in 2026 — which is the first thing to get right before choosing.

Kong Gateway's open-source line has stalled at 3.9: the latest OSS release is 3.9.5, shipped 19 November 2026, and there is no 3.10 or later community build. Enterprise has moved on to 3.16 (15 September 2026), with 3.14 as the current LTS supported to 2029, and the AI Gateway — MCP tool governance, identity-aware AI policies, token-aware cost management — is at 2.2 (30 September 2026) inside Konnect. The practical meaning: Kong OSS is still patched and free to self-host, but new minor versions are Enterprise-only, and hybrid mode (control plane separated from data plane) is Enterprise-only too. If you pick Kong OSS in late 2026, you are picking a stable, patched 3.9 line — plan for that, and do not plan a migration path that assumes a 3.10 community release.

Gravitee has gone the other way: 4.13 shipped 16 November 2026, unifying API management, event management, AI Gateway, and agent management in one experience, with API Products in the developer portal, MCP proxy support, and v4 APIs as the current definition (v2 APIs are now deprecated with a migration path). Gravitee 4.12 (26 June 2026) rebuilt the Redis cache resource on a native Vert.x client and added Azure Key Vault as a native secret provider. The open-source core is Apache 2.0, and the platform is strongest when you need to govern synchronous APIs, event streams, and AI traffic through one control point.

Self-hosted wins on control and on cost at scale: the per-request bill is your infrastructure, not a vendor meter. It loses on operations: you own upgrades, high availability, the control plane, and the portal's uptime. The break-even is usually a team that already runs a platform and can absorb one more stateful service — not a team that wants the gateway to disappear.

Path 3: Gateway-only, then add the rest

The third path is the one most teams actually live on, whether they admit it or not: a gateway (Envoy, NGINX, or a cloud load balancer with auth) plus hand-built or lightly-bought management. Documentation from the OpenAPI spec, keys in a database, quotas in Redis, a static docs site. This is cheap and fast for internal APIs, and it is also how teams end up with a portal nobody maintains and a key-rotation spreadsheet.

The rule for this path is a tripwire, not a feeling: when a second consumer group arrives — another team, a partner, a mobile app with its own release train — stop and buy or build the portal properly. The gateway-only path fails gradually, through undocumented endpoints and keys that nobody can revoke, and by the time it hurts, the migration is a project.

The stack, layered

The management stack, layered — every layer answers a different question Developer experience — portal · docs · try-it · self-service keys Management plane — lifecycle · versioning · quotas · analytics · billing Gateway data plane — routing · auth · rate limit · transform · cache Services & data — the APIs themselves, unchanged by the layers above Swap the gateway without touching the portal; swap the portal without touching the services.

The layering matters because it tells you what you can swap. The portal can change without touching the gateway. The gateway can change without touching the services. The services never know the management plane exists. When a vendor bundles all four layers into one control plane that cannot be separated, you are not buying a stack — you are buying a marriage. That is fine when the marriage is to your own cloud, and a liability when it is to a vendor whose pricing or roadmap can change under you.

Keep the OpenAPI document as the seam between layers. If the spec is generated from code and published to the portal automatically, the portal stays honest. If the spec is a file someone updates by hand, the portal drifts from the API within a quarter, and developers learn to ignore it. The single most valuable automation in API management is not a policy — it is the pipeline that publishes the spec on every merge.

Rate limits, quotas, and keys — the part that actually protects you

Rate limiting is the feature that justifies the gateway for most teams, and it is also the one most often configured wrong. There are three different mechanisms, and they solve three different problems.

Throttling protects the backend: a per-route or per-method requests-per-second cap that keeps one caller from taking the service down. Set it from the backend's real capacity, not from a round number. A service that handles 400 requests a second with headroom should throttle at 500, not at 10,000 — the cap is a circuit breaker, not a decoration.

Quotas protect the business: a per-consumer allowance over a day or a month, usually tied to a usage plan. Quotas are how a free tier stays free and how a partner's runaway job gets a phone call instead of a bill. AWS REST APIs implement this directly as usage plans attached to API keys; Azure APIM implements it as products with subscription policies; Kong and Gravitee implement it as plugins and policies on the gateway.

Keys and tokens identify the caller so the first two can be enforced per consumer. API keys are identification, not authentication — they say who is calling, not that the caller is who they claim to be. Pair keys with a real auth mechanism (OAuth 2.0, JWT, mTLS) for anything that is not public. Keys are revocable and rotatable, which is their real value: when a partner's key leaks, you revoke one key, not redeploy a service.

A concrete example, in Kong's declarative format — a rate-limiting plugin plus key authentication on one service:

# decK-style declarative config: one service, two plugins
services:
  - name: orders-api
    url: http://orders.internal:8080
    routes:
      - name: orders
        paths: [/v1/orders]
    plugins:
      - name: key-auth
        config:
          key_names: [apikey]
      - name: rate-limiting
        config:
          minute: 600
          hour: 10000
          policy: redis
          redis_host: redis.internal
          fault_tolerant: true
          hide_client_headers: false

Two details in that snippet carry the whole lesson. First, policy: redis instead of the default local counter: per-node counters let a caller exceed the limit by the number of gateway replicas, which is exactly the bug you find at 2 a.m. Second, fault_tolerant: true: if Redis dies, the gateway keeps serving instead of failing every request — because a rate limiter that takes the API down is worse than no rate limiter at all.

For a comparison of the gateway patterns themselves — when a gateway, a sidecar mesh, or a BFF is the right front door — see API Gateway Patterns and Service Mesh vs API Gateway. The choice of front door and the choice of management plane are separate decisions, and conflating them is how teams end up with a mesh doing a portal's job.

The developer portal: what good looks like

A portal earns its keep when a new developer can go from zero to a working call in under ten minutes without talking to anyone. That sets a concrete bar, and most portals fail it in the same places.

Docs generated from the spec, not written by hand. Every endpoint shows its request and response shapes, its auth requirements, and its error codes, because all of that comes from the OpenAPI document. Hand-written docs are wrong within a month; generated docs are wrong only when the spec is wrong, and the spec is tested in CI.

A try-it console that works with a real key. The fastest way to lose a developer is a console that returns a canned example. The second fastest is a console that requires a support ticket to get a key. Self-service key provisioning with a sandbox environment is the feature that makes the portal real.

Versioning that is visible and boring. One version live, one deprecated with a date, one retired. The portal shows the deprecation date on every page of the old version, and the changelog says what changed and what to do about it. The versioning policy is a product decision, not a technical one: URL versions (/v1/, /v2/) are the most explicit and the easiest to operate; header versions hide the decision from the developers who have to make it.

A status page and a changelog. Developers do not need a marketing blog. They need to know when the API is down, when a field is deprecated, and when a new version ships. If the portal has no changelog, developers learn about breaking changes from their error logs.

If your portal does all four, it is better than most. If it does two, it is still worth having — because the alternative is the same information scattered across wikis, chat threads, and one person's memory.

Monetization: when an API earns a price

Not every API should be charged for, and charging for the wrong one is worse than giving it away. The decision is about who consumes it, not about how expensive it was to build.

When does an API earn a price? Decide by who consumes it Who calls the API? the consumer decides the model Your own teams internal only Named partners contracts + SLAs The public self-serve signup Free, gateway-only no billing plane Usage tiers + quotas per-partner plans Metered pricing per-call + overage Charge only when the API is a product: named consumers, a contract, and someone to bill.

Internal-only APIs stay free. Charging your own teams creates accounting, not revenue, and it makes every team optimize against the meter instead of against the product. The management plane still matters here — keys, quotas, and analytics — but the business layer does not exist.

Partner APIs get usage tiers. A named partner with a contract gets a plan: a quota, a rate limit, an SLA, and a price that is usually flat or tiered rather than metered. The negotiation is about the tier, not about the per-call price, because the relationship is worth more than the meter. This is where Azure APIM's product model and AWS usage plans fit naturally: the plan is the contract, expressed in configuration.

Public APIs get metered pricing. When anyone can sign up, the price has to be self-serve and legible: a free tier with a real quota, a per-million-request price, and overage rules a developer can predict before they integrate. AWS's split is instructive here — $1.00 per million for HTTP APIs against $3.50 per million for REST APIs is a 3.5x difference that should be a deliberate choice, not an accident of which API type someone clicked. Azure's v2 tiers make the same point from the other direction: Basic v2 at $150 a month includes 10 million calls, Standard v2 at $700 includes 50 million, and the overage beyond the allowance is $3.00 and $2.50 per million respectively — so the tier decision is really a volume forecast, and getting it wrong costs real money every month.

The pricing models, in order of how much operational machinery they need: flat per-month (one invoice, no metering), tiered by quota (metering, but only to enforce the tier), and pure metered per-call (full billing pipeline, invoicing, dunning, tax). Each step up roughly doubles the operational surface. Start one step lower than you think you need — you can always add metering later, but you cannot un-send an invoice.

And the trap to name plainly: charging for an API nobody depends on yet. Monetization works when the API is already load-bearing for its consumers — when switching away would cost them more than paying you. If the API is still proving itself, the price is adoption, and the portal is the product.

Architecture Decision

Decision: Adopt a managed API management plane on our primary cloud (AWS API Gateway REST APIs, or Azure APIM Standard v2), with a self-hosted Kong 3.9 or Gravitee 4.13 gateway only if we outgrow the managed tier's cost or need multi-cloud portability.

Context: The API surface is growing past one team: internal services, a mobile app, and two named partners are now consumers. Today there is a gateway and a wiki. Keys are shared in chat, quotas do not exist, and versioning is a Slack announcement. The next incident will be a partner's runaway job taking down an internal service, and nobody will be able to say which key did it.

Options considered: (1) Managed on the primary cloud — fastest to operate, portal included, per-request billing. (2) Self-hosted Kong or Gravitee — full control, flat infrastructure cost, but we own upgrades, HA, and the portal. (3) Gateway-only plus hand-built management — cheapest now, but the portal and key store become unmaintained side projects within a quarter. (4) Full enterprise platform (Apigee, Kong Konnect) — the most complete, but priced for a program we do not have yet.

Why this one: Managed removes the operational load we cannot staff, and the portal is included rather than built. The per-request cost is predictable at our current volume, and the usage-plan model maps directly onto partner contracts. Self-hosted stays a real fallback because the OpenAPI spec is the seam — nothing in the services depends on the management plane.

What it costs you: Per-request billing that grows with traffic and never stops; the management layer does not leave the cloud with you; and the tier jump (Azure Basic v2 to Standard v2, or AWS HTTP to REST) is a real budget event that needs a volume forecast, not a surprise.

When to reverse it: When the monthly managed bill exceeds the cost of one engineer-month of gateway operations, when a second cloud becomes a hard requirement, or when the managed tier's limits (call volume, policy expressiveness) start shaping the product instead of serving it. At that point, move the gateway to Kong 3.9 or Gravitee 4.13 and keep the spec, the portal content, and the usage plans — those are the assets, not the vendor.

When NOT to use full API management

Full management is the wrong buy in three situations, and each one has a cheaper answer.

One team, one API, internal only. A gateway with auth and a rate limit is the whole requirement. The portal would have one reader, the usage plan would have one consumer, and the billing layer would invoice your own cost center. Spend the effort on the API instead.

A handful of endpoints that change rarely. If the API surface is small and stable, a static docs site generated from the spec and keys in a secret manager are enough. Management platforms earn their keep on churn — versions, consumers, and policies changing every week. Without churn, they are overhead.

You need a gateway, not a platform. If the actual problem is routing, auth, and rate limiting for services that talk to each other — the east-west traffic — that is a service mesh or a gateway decision, not a management decision. See REST vs GraphQL vs gRPC for the API-style decision that comes before any of this, and Backend-for-Frontend Pattern for the case where the front door should be per-client rather than shared. Buying a portal to solve a routing problem is how platform budgets die.

Recommendation

Start with the gateway and a usage plan, not with the platform. If you are on AWS, that means HTTP APIs by default and REST APIs only when you need keys, quotas, and validation — the 71% cost and 60% latency gap AWS publishes is not a rounding error. If you are on Azure, it means Consumption for spiky low volume and Basic v2 the moment you need a stable production tier, with a volume forecast before you step to Standard v2. Add the portal the moment a second consumer group appears, because that is the moment documentation becomes a product. Add billing only when the API has named customers who would pay to keep it.

The management plane is not a purchase. It is a sequence: gateway, then portal, then billing — each step taken when the consumer count forces it, each step reversible because the OpenAPI spec is the seam. Buy the layer your consumers justify today, and keep the exit open for the day they justify more.

  • API Gateway Patterns — the gateway patterns themselves, before the management layer
  • Service Mesh vs API Gateway — which front door, and when the mesh is the wrong tool
  • REST vs GraphQL vs gRPC — the API-style decision that comes first
  • Multi-Cloud Networking: Transit, PrivateLink, and the Data-Transfer Bill — what the network plane costs once APIs span clouds
  • Why This Matters

    Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

    Trade-offs to Consider

    Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

    When NOT to Use This

    Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

    Decision Framework

    Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

    Share this articleShare on XShare on LinkedIn

    Keep the decision frameworks coming

    One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.