Lesson 02 of 13 · The big picture
Ingress, Gateway API, API gateway, service mesh: who does what
Ingress, the Gateway API, API gateways and service meshes overlap and are easy to confuse. What each one is (an API, an implementation or a product), north-south vs east-west traffic, what each can and can't do, how they combine in one platform, and a decision table for choosing.
Four names for overlapping things
"Gateway" is one of the most overloaded words in platform engineering. Separate three kinds of thing:
- APIs (a standard you write YAML against): Ingress, Gateway API.
- Implementations (software that reads that YAML and moves traffic): Envoy Gateway, Istio, NGINX Gateway Fabric, Traefik, Kong, HAProxy, cloud controllers.
- Products and patterns: API gateways (API management) and service meshes.
The Highway Code is a standard (the API); cars from many brands follow it (implementations). A toll booth with season tickets and lane limits is an extra service on top (an API gateway), and the internal roads of a factory site with their own badges and speed limits are a separate system (a service mesh).
Ingress: the original
- Kubernetes object since the early days: host and path rules → Service.
- Frozen: no new features. TLS, rewrites, rate limits, auth, timeouts and canaries live in annotations that differ per controller, so manifests aren't portable.
- The community ingress-nginx controller was retired in 2026; teams are moving to the Gateway API.
- Basics: Ingress basics.
Gateway API: the successor
- A family of Kubernetes APIs:
GatewayClass,Gateway,HTTPRoute,GRPCRoute,TLSRoute,ReferenceGrant,BackendTLSPolicyand more. - Role-oriented: the platform team owns the Gateway (listeners, certificates, which namespaces may attach); app teams own their Routes.
- Typed and portable: header matching, weighted backends, redirects, rewrites, mirroring and timeouts are fields, not annotations.
- Implementations add their own policy resources for things the standard doesn't cover yet (for example Envoy Gateway's
SecurityPolicyandBackendTrafficPolicy, used in lessons 5 to 7). - In depth: lesson 3.
API gateway: policy for APIs as a product
An API gateway focuses on who may call which API, how much, and how it looks:
| Feature | Example |
|---|---|
| Authentication | API keys, JWT/OIDC, mTLS clients, external authorization |
| Plans and quotas | 1,000 calls/day free, 1 million/month paid |
| Transformations | Rename headers, map old paths to new ones, mask fields |
| Versioning and lifecycle | /v1 and /v2 side by side; deprecation headers |
| Developer portal | Docs, sign-up, keys, usage dashboards for API consumers |
| Analytics | Calls per consumer, errors per version |
Self-hosted options (Kong, Tyk, Envoy-based gateways, Apigee hybrid) or managed ones (AWS API Gateway, Azure API Management, Google Apigee) (lesson 11). Many self-hosted API gateways now implement the Gateway API too, so the line between "gateway API" and "API gateway" keeps blurring.
Service mesh: traffic between services
- Handles east-west traffic: service A calling service B inside the platform.
- mTLS for every call with workload identity, retries and timeouts, telemetry, authorization policy per service.
- Usually has its own ingress gateway too (Istio does), which can be the cluster's Gateway API implementation.
- In depth: the Service Mesh course.
Who does what
| Need | Ingress | Gateway API | API gateway | Service mesh |
|---|---|---|---|---|
| Host/path routing into the cluster | ✔ | ✔ | ✔ | ✔ (its gateway) |
| Header match, weighted canary, mirroring | annotations | ✔ | ✔ | ✔ |
| Separate platform and app ownership | ✘ | ✔ | varies | ✔ |
| JWT validation, API keys | annotations | implementation policy | ✔ | ✔ (JWT) |
| Per-consumer quotas and plans | ✘ | implementation policy | ✔ | ✘ |
| Developer portal, API analytics | ✘ | ✘ | ✔ | ✘ |
| mTLS between all services | ✘ | ✘ | ✘ | ✔ |
How they combine in one platform
internet → CDN/WAF → load balancer → [Gateway API implementation] ← platform team owns the Gateway
│ with API-gateway features app teams own HTTPRoutes
│ (auth, limits, retries)
▼
services ◄──mesh mTLS──► services (east-west)
A common, simple setup: one Gateway API implementation for north-south traffic that also does JWT checks and rate limits (lessons 4 to 7), plus a mesh only if you need mTLS between services. Add a full API-management product when you sell APIs to outside developers.
Try it: classify
For each requirement, choose Ingress, Gateway API, an API gateway product, a service mesh or "something else":
- Route
shop.example.com/*to the shop service. - Encrypt every call between 40 internal services and allow only
billingto callpayments. - Give partner companies API keys with 10,000 calls per day.
- Send 5% of traffic to version 2 of the orders service.
- Block SQL-injection attempts from the internet.
- Let app teams change their own routes without touching certificates.
Going deeper
- Check an implementation's conformance report for the Gateway API version and features you need before choosing it.
- GAMMA is the Gateway API's work for meshes: using
HTTPRoutewith a Service as parent to control east-west traffic. - Don't stack more proxies than you need: each one is latency, configuration and a failure point.
Recap
- Ingress and the Gateway API are APIs; Envoy Gateway, Istio, NGINX and others are implementations; API gateways and meshes are products and patterns.
- Gateway API replaces Ingress: role-based, typed and portable; vendors add policy resources on top.
- API gateways add consumer-facing features (keys, plans, quotas, portals); meshes handle service-to-service security and telemetry.
- Start simple: one Gateway API implementation for the way in, a mesh only when you need it.
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.