Nginx and API gateways · senior
API gateways, Ingress and service meshes
A gateway handles keys, quotas and routing for outside callers. An ingress or Gateway API implementation routes traffic into a Kubernetes cluster. A mesh handles service-to-service traffic. Each one costs something to run.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Gateway jobs for a partner API: authentication (API keys, OAuth client credentials), per-partner quotas and rate limits, request validation, routing, TLS, logs and analytics, a developer portal, versioning.
- AWS API Gateway: fully managed, usage plans with API keys and throttling, Lambda, Cognito or JWT authorizers, WAF. Limits to check: integration timeout (29 seconds by default for REST APIs), payload size, per-request pricing, tied to AWS. AWS docs say not to use usage-plan API keys alone for authentication.
- Kong or plain Nginx: more control and portability, but you run them (upgrades, scaling, plugins, a database for some setups).
- The community kubernetes/ingress-nginx controller was retired: maintenance ended in March 2026 and the repository was archived on 24 March 2026. Installs keep working but get no fixes. F5's NGINX Ingress Controller is a different, maintained project. The Ingress API itself still exists.
- Migration plan: list ingress-nginx pods and every Ingress with its class and annotations, group them by feature (rewrites, auth, canary, rate limits, body size, timeouts, snippets), then move to Gateway API (Gateway, HTTPRoute, GRPCRoute) on a maintained implementation, route by route.
- Service mesh: proxies in the path between services, run by a control plane. Gives mTLS with workload identity, authorization by service, retries, timeouts, traffic splits and request metrics without code changes.
- Mesh costs: CPU and memory per sidecar, a little latency per hop, a control plane to upgrade, new ways to fail, harder debugging. Istio ambient mode drops sidecars (a per-node ztunnel for mTLS and layer 4, optional waypoint proxies for layer 7).
- Danger: retries in the app and in the mesh multiply during an outage. Decide who retries.
The red pen
Common traps: mistake → fix
Mistake: A gateway is just a load balancer
Fix: It also does keys, quotas, validation, analytics and routing by partner.
Mistake: Retired ingress-nginx stops working immediately
Fix: It runs on, with no security fixes. Plan the migration.
Mistake: A service mesh is required for microservices
Fix: Many systems run well with plain Kubernetes Services, network policies and TLS libraries.
Easy to hard
Questions interviewers ask, easy to hard
- What does an API gateway do that Nginx alone does not?
- How would you choose between AWS API Gateway, Kong and plain Nginx for a partner API?
- What is Gateway API and why move to it?
- Why do some teams avoid a service mesh?
- Your cluster runs community ingress-nginx. Plan the migration.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.