Skip to main content

Architecture and Request Path

A call to one of your APIs crosses the same four stages whatever the API: an entry that depends on the exposure of the gateway, the proxy of the gateway, a route, and the service that answers.

A caller enters through the exposure of the gateway (public, private or internal), then the gateway proxy ends TLS on an access point, matches an API instance, applies its policies and forwards to an integration or to an upstream

Public, private or internal entry​

A gateway has one exposure, chosen when it is created. It decides from where the gateway can be reached at all, before any route or policy is looked at.

ExposureWho can reach itHow
PublicAnyone on the internetA public load balancer
PrivateYour private network onlyA private load balancer
InternalOnly what runs inside the platformAn address inside the platform, no load balancer facing outside

To publish the same service to partners and to other teams, use two gateways with two exposures: nothing has to change in the service. API Gateway Reference describes each mode.

Proxy access point, route and policies​

Behind the entry, the proxy of the gateway does three things, in this order.

StageWhat happensSet on
Access pointThe connection is accepted on a port and a protocol. On HTTPS, TLS ends here, with the certificate of the access pointThe gateway
API instanceThe request is matched to a route by its host name and its path. No match, no answerThe API instance
PoliciesThe caller is checked (API key, token or sign-in) and traffic limits apply. A refused request never reaches the servicePolicies
A route without a security policy is open

The proxy checks a caller only if a security policy says so. On a public gateway, a new API instance answers anyone until its policy is added.

Integration or upstream backend​

An accepted request is forwarded to the service chosen in the API instance.

BackendWhere it isLink to it
IntegrationIn the same environmentStays inside the environment
UpstreamOutside the environmentTLS, and mutual TLS when the gateway presents a client certificate. See Backend TLS

Where each protection applies​

ProtectionStageReference
ReachabilityEntry, by the exposure of the gatewayAPI Gateway Reference
TLS towards the callerAccess pointTLS Certificate
Authentication of the callerPoliciesSecurity Policy Reference
TLS and mutual TLS towards the backendBackendRoute Filter Reference