Lesson 11 of 13 · Designing the edge
Managed options on AWS and Azure
What the big clouds offer for each layer of the edge and how it maps to what you built in the lab: AWS (CloudFront, WAF, Shield, ALB, API Gateway, Global Accelerator, Kubernetes controllers) and Azure (Front Door, WAF, Application Gateway for Containers, API Management), with a short Google Cloud note. What each is for, typical limits to check, and how to choose between managed services and a self-hosted gateway in Kubernetes.
Same layers, different names
Every cloud offers a service for each layer you met in this course. The job doesn't change; the names, limits and prices do.
| Layer | What you built or learned | AWS | Azure | Google Cloud |
|---|---|---|---|---|
| Global steering | Lesson 10 | Route 53, Global Accelerator | Traffic Manager, Front Door | Cloud DNS, global load balancer |
| CDN and edge TLS | Lesson 1 | CloudFront | Front Door | Cloud CDN |
| WAF and DDoS | Lesson 9 | AWS WAF, Shield | Azure WAF, DDoS Protection | Cloud Armor |
| L7 load balancer into Kubernetes | Lesson 4 | ALB (AWS Load Balancer Controller) | Application Gateway for Containers | GKE Gateway controller |
| API management | Lessons 5, 6, 8 | Amazon API Gateway | Azure API Management | Apigee, API Gateway |
Every city has a post office, a police station and a bus company. The buildings look different in each city and the opening hours vary, but you already know what each one does, so you only need to learn the local names and rules.
AWS
- CloudFront: CDN with hundreds of edge locations; TLS at the edge; CloudFront Functions and Lambda@Edge for small request changes; origin protection via origin access controls, VPC origins or a secret header.
- AWS WAF: managed rule groups (including OWASP-style rules), rate-based rules per IP or other keys, bot control; attaches to CloudFront, ALB, API Gateway.
- AWS Shield: Standard DDoS protection is included; Advanced adds response-team support and cost protection.
- Application Load Balancer: host and path routing, OIDC authentication action, WAF integration. In EKS, the AWS Load Balancer Controller creates ALBs from Ingress or Gateway API resources.
- Amazon API Gateway: REST APIs (usage plans, API keys, request validation, caching), HTTP APIs (cheaper and simpler, JWT authorizers), WebSocket APIs; Lambda authorizers for custom auth; throttling at account, stage and method level. Check its limits early: payload size, integration timeout (about 29 seconds by default) and default account throttles.
- Global Accelerator: two anycast IPs, fast regional failover for TCP/UDP and HTTP.
- VPC Lattice: service-to-service networking and auth across VPCs and accounts, also with a Gateway API controller.
Azure
- Azure Front Door (Standard/Premium): global anycast edge, CDN, L7 global load balancing with health probes, WAF policies, private link to origins (Premium).
- Azure WAF: managed rule sets (OWASP-based), custom and rate-limit rules, on Front Door or Application Gateway.
- Application Gateway for Containers: a managed L7 load balancer for AKS, configured from the cluster through the Gateway API or Ingress by its ALB controller; traffic splitting, header routing, mTLS to backends.
- Azure API Management (APIM): a full API-management product: gateway, developer portal, products and subscriptions (keys), and an XML policy language:
validate-jwt,rate-limit-by-key,quota-by-key,set-header,rewrite-uri, caching, transformations. Tiers range from developer to premium (multi-region, VNet). The self-hosted gateway runs APIM's gateway as containers in your own clusters, managed centrally.
<!-- APIM inbound policy: verify the token, then limit per tenant claim -->
<inbound>
<validate-jwt header-name="Authorization" failed-validation-httpcode="401">
<openid-config url="https://login.example.com/.well-known/openid-configuration" />
<audiences><audience>orders-api</audience></audiences>
</validate-jwt>
<rate-limit-by-key calls="20" renewal-period="60"
counter-key="@(context.Request.Headers.GetValueOrDefault("Authorization","").AsJwt()?.Claims.GetValueOrDefault("tenant", "anonymous"))" />
</inbound>
This is the managed equivalent of lessons 5 and 6: verify the JWT, then a counter per tenant claim.
Google Cloud, briefly
The global external Application Load Balancer (anycast, global), Cloud Armor (WAF, DDoS, rate limiting), Cloud CDN, the GKE Gateway controller (Gateway API), and Apigee for full API management.
Managed or self-hosted?
| Question | Leans managed | Leans self-hosted (in Kubernetes) |
|---|---|---|
| Team size and skills | Small team, no wish to run proxies | Platform team comfortable with Envoy and Gateway API |
| Clouds | One cloud | Several clouds or on-premises; one configuration everywhere |
| Traffic volume | Low to medium (per-request pricing is fine) | Very high (per-request pricing gets expensive) |
| Features | Developer portal, keys, plans out of the box | Custom policies, tight integration with your cluster |
| Latency | An extra managed hop is acceptable | Keep the gateway next to the services |
| Control over upgrades | Provider upgrades for you | You choose when, and you must keep up |
Common combinations: a managed global edge (CDN, WAF, DDoS) in front of a self-hosted Gateway API implementation in each cluster; or a managed API-management product for partner APIs next to a self-hosted gateway for internal and product traffic.
Try it: map your platform
- Fill in the layer table for your own platform (or a sample design): which service or software handles each layer today?
- Pick one API and compare its monthly cost on a managed API gateway (from the provider's price calculator) with running two to three gateway pods.
- Write the APIM or API Gateway equivalent of the lab's
SecurityPolicyandBackendTrafficPolicy. - List the limits of your chosen managed gateway (timeouts, payload size, requests per second) that could affect your API.
Going deeper
- Managed services change often; check current limits, tiers and regional availability in the provider's documentation before designing around them.
- Keep configuration in code (Terraform, Bicep, CloudFormation) for managed edges too, and roll changes through environments.
- Whatever you choose, keep one request ID across every layer and send all access logs to one place (lesson 12).
Recap
- Each cloud has a service per edge layer: steering, CDN, WAF and DDoS, L7 load balancing into Kubernetes, API management.
- AWS: Route 53, Global Accelerator, CloudFront, WAF, Shield, ALB, API Gateway. Azure: Traffic Manager, Front Door, WAF, Application Gateway for Containers, API Management.
- Managed services trade control and per-request cost for less operations; self-hosted Gateway API gives portability.
- Many platforms combine a managed global edge with a self-hosted gateway in each cluster.
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.