コンテンツにスキップ

Gateways and API Management

このコンテンツはまだ日本語訳がありません。

Module 6 of 8 in the chapter Enterprise Integration Architecture, chapter 18 of the Integration Architect course. Each module stands on its own. Previous: The Contract Decided in the First Weeks · Next: The Vault in the Middle: Who Holds Your Keys

The question this module answers: Once a company publishes dozens of APIs, who checks every call that comes in? And what changed in 2026, when agents became callers too?

In class, when I show the connected app, I call it the gateway: everything that connects into the org comes through it, and it decides what that caller can do. When I show named credentials, I call them the gateway to leaving Salesforce. One gate in, one gate out, and each one has a policy.

Now look at the middle you’ve built in this chapter. Module 4’s layers publish APIs: experience APIs for the partners, the status page and the agent, process APIs other teams reuse. Every one of those is a door. And every door needs the same rules. Who’s calling? How often may they call? Which version are they on? What do we log?

You don’t want each API to write those rules for itself. Forty teams would write them forty ways. So the company puts one thing in front of all of them: an API gateway.

A gateway sits between the callers and the APIs, and every call passes through it. It doesn’t do the work. It applies the policy, then passes the call on.

  • Who’s calling. It checks the caller’s credentials: a client ID and secret, a token from an OAuth flow, a certificate. Calls without a valid one never reach the API (chapter 13).
  • How often. Rate limits and quotas: this partner may make so many calls a minute, that one more on a paid tier. When a caller goes over, it gets a 429 with a Retry-After header, the same answer chapter 8 module 5 taught for your own door.
  • Which version, and where. It routes each call to the right version of the API, and to the right place, so an old version can keep running while callers move to the new one (chapter 3 module 2).
  • What happened. It logs every call, its caller, its time and its answer, in one place, which is half of what chapter 14 asks for when something fails.
  • What’s dangerous. It can block oversized requests, malformed payloads and known attack patterns before they reach anything.

Here’s the line I’d keep straight: the integration platform builds the API; the gateway enforces the rules in front of it. Often they come from the same vendor. They’re still two different jobs.

The gateway enforces the policy on each call. API management is everything around it.

  • A catalog. One place where teams can find the APIs that exist, read their contracts and ask for access. It’s chapter 17’s phone book, but inside the company, where it works, because the callers and the publishers know each other.
  • Standards. Rules every API must meet before it’s published: how it’s named, how its errors look, which version scheme it uses. Checked when it’s designed, not discovered when it breaks.
  • The lifecycle. Publishing a new version, announcing the old one’s retirement, watching who still calls it, and switching it off (chapter 17 module 8).
  • The numbers. Who calls what, how often, how fast, and how many fail.

The products, named evenly: MuleSoft’s Anypoint Flex Gateway, which MuleSoft says can protect “all Mule and non-Mule APIs”, with “routing strategies, security policies, SLA tiers, and more” (Understanding Universal API Management & Anypoint Flex Gateway (opens in a new tab), MuleSoft Developers, checked 2026-11-21); Azure API Management; Google’s Apigee and API Gateway; AWS’s API Gateway; and Kong, among others. As with the integration platform in module 2, the one the company already runs is usually the one to use.

Salesforce’s Own Doors Have Their Own Rules

Section titled “Salesforce’s Own Doors Have Their Own Rules”

Where does Salesforce sit in this picture?

Salesforce’s own APIs already have a door policy, and Salesforce runs it. An integration signs in through an app the org controls, an External Client App for anything new, as a user with that user’s permissions, and its calls count against the org’s API allocation (chapter 8, chapter 13). You don’t put a gateway in front of Salesforce to protect Salesforce. It protects itself.

What you put behind the company’s gateway are the APIs the company publishes, including the ones that reach Salesforce. And here a gateway helps Salesforce too. If three partners all call a process API that writes into Salesforce, the gateway can limit each partner, so one busy partner can’t use up the org’s whole allocation for the day. Salesforce counts the calls; the gateway decides who gets to make them.

Now the part that’s new.

In 2026 the gateways started treating agents as callers, and agent tools as APIs. The same products, the same idea, a new kind of traffic.

  • Microsoft describes an AI gateway in Azure API Management that manages language model APIs, and also “Remote MCP servers and A2A agent APIs”. And it’s careful to say: “The AI gateway, including MCP server capabilities, extends API Management’s existing API gateway; it’s not a separate offering” (AI gateway capabilities in Azure API Management (opens in a new tab), Microsoft Learn, updated 2026-05-29, checked 2026-11-21).
  • Google added a public preview on September 11, 2026 that lets its API Gateway “act as a remote Model Context Protocol (MCP) server”, to “expose your existing REST APIs to AI agents as tools, without requiring changes to your backend services” (API Gateway release notes (opens in a new tab), checked 2026-11-21).
  • MuleSoft puts Flex Gateway at the centre of the “govern” part of Agent Fabric (module 3).

Read those together, and the lesson is the one this chapter keeps teaching. An agent calling a tool is a caller calling an API. It needs the same door policy: who is this agent, acting for whom, how often may it call, what did it do. What’s new is the detail: a limit on the tokens a model may use, a policy on each tool rather than each API, and the agent’s own identity next to the person it’s working for.

And the old warning applies too. Without a gateway, every agent connects to every tool on its own, and you’ve drawn module 1’s web again. Chapter 22 takes MCP apart, and chapter 23 agents calling agents.

Test knowledge. Know what an API gateway or API management layer provides: authentication, rate limiting and quotas, versioning and routing, logging and analytics, and protection from bad requests. Expect a scenario where many external callers use APIs the company publishes, and the answer puts API management in front of them. Know that Salesforce enforces its own API limits on its own APIs.

  • Which APIs go behind the gateway: every API the company publishes, with no side doors around it.
  • The policies: who may call, how often, on which version, and what’s logged.
  • The catalog and the standards every API must meet before it’s published.
  • How each caller’s share of Salesforce’s allocation is protected, when many callers reach Salesforce through the middle.
  • Agents as callers: which tools they reach through the gateway, with which identity, and with what limits.