API Gateways, Traffic Management & the Edge
Everything between the internet and your services. Follow one request through DNS, CDN, WAF, load balancer, gateway, mesh and pod, and sort out Ingress, the Gateway API, API gateways and service meshes. Learn the Gateway API object by object, then build a working edge on a local kind cluster with Envoy Gateway: shared Gateway and team-owned routes, header routing and weighted canaries, HTTPS, JWT validation with verified claims passed to services, per-tenant and per-plan global rate limits with real 429s, and timeouts and retries measured against a flaky backend. Then design the rest: API versioning and deprecation, layered edge security, multi-region steering and failover, what AWS and Azure offer for each layer, and how to operate a gateway from access logs to upgrades. Every lab command and output was run for real.
What you'll be able to do
- Trace a request from browser to pod and explain what each hop adds, costs and records
- Choose between Ingress, the Gateway API, an API gateway product and a service mesh
- Model ownership with GatewayClass, Gateway, Routes and ReferenceGrant, and debug with status conditions
- Build a working gateway with header routing, weighted canaries and HTTPS on Kubernetes
- Validate JWTs at the gateway and pass verified claims to services safely
- Apply per-tenant, per-plan rate limits that hold across gateway replicas
- Set timeouts, retries and circuit breakers that help instead of amplifying failures
- Version, deprecate and retire APIs using contracts and real usage data
- Layer DDoS protection, WAF, bot defences and origin protection in front of APIs
- Design multi-region steering and failover within data-residency rules
- Map the edge to AWS and Azure services and decide between managed and self-hosted
- Operate gateways: read access-log flags, monitor per route, roll out changes and upgrades safely
Before you start
Kubernetes basics (Deployments, Services, namespaces), the command line, Docker. Helpful: Kubernetes Administration up to Ingress, and HTTPS basics.
How it works
Each lesson: plain-language idea → how it really works → hands-on. Each section ends with a cheat sheet & self-check.
Curriculum
Lessons marked “Read” are ready; the rest are on the way.
The big picture
- 01One request, from browser to podDNS, CDN, WAF, load balancer, gateway, mesh: what each hop addsRead →
- 02Ingress, Gateway API, API gateway, service mesh: who does whatAPIs vs implementations vs products, north-south vs east-westRead →
- 03Gateway API in depthObjects and roles, matches and filters, ReferenceGrant, status conditionsRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 12 questions to check yourself.Open →
Hands-on with Envoy Gateway
- 04Lab: your first gatewayInstall, shared Gateway, header routing, 90/10 split, HTTPSRead →
- 05Authentication at the edgeAPI keys, JWT, mTLS, ext_authz; lab: JWT checks and verified claimsRead →
- 06Rate limiting and quotasToken bucket, local vs global; lab: per-tenant, per-plan limits and 429sRead →
- 07Timeouts, retries and traffic managementTimeout chains, retry storms measured, circuit breaking, canary, mirroringRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 16 questions to check yourself.Open →
Designing the edge
- 08The API lifecycleContracts, breaking changes, versioning, deprecation and sunsetRead →
- 09Edge securityDDoS, WAF rollout, bots, TLS and headers, origin protection, API risksRead →
- 10Global traffic and failoverGeoDNS and anycast, health checks, active-active, residency, drillsRead →
- 11Managed options on AWS and AzureEach edge layer as a cloud service; managed vs self-hostedRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 16 questions to check yourself.Open →
Running it
- 12Operating gatewaysAccess logs and response flags, 4xx/5xx field guide, metrics, rollout, upgradesRead →
- 13Capstone: design the edge for a multi-region APIPlans, limits, identity, resilience, lifecycle, operationsRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 7 questions to check yourself.Open →
Real-world scenarios
Work through each one: symptom → misleading signal → evidence → root cause → prevention.
A free customer's buggy script sends thousands of requests per second and every tenant's API slows down. Contain it now and make sure it can't happen again.
A slow database led to timeouts, and gateway retries tripled the load until everything failed. Redesign timeouts and retries.
An old API version must be removed, but nobody knows who uses it. Find out, warn them and retire it safely.
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.