API Gateways, Traffic Management & the Edge›Designing the edge · Cheat sheet & self-check

Designing the edge · wrap-up

Cheat sheet & self-check

Every command from this section on one page.

08 · The API lifecycle

Safe vs breaking changes

Safe (additive)New endpoint, new optional field in a request, new field in a response, new enum value consumers are told to tolerate
BreakingRemoved or renamed field or endpoint, changed type, new required request field, changed meaning, stricter validation

Lifecycle tools

OpenAPIThe contract: paths, schemas, auth, examples
Spectral (or similar)Lint the contract against your style rules
oasdiff (or similar)Compare two OpenAPI versions in CI; fail on breaking changes
Deprecation / Sunset headersTell clients an endpoint is deprecated and when it will stop working

09 · Edge security

Layers

DDoS protectionAbsorb floods: network (L3/L4) at the provider edge, HTTP floods (L7) with rate rules
WAFKnown attack patterns: SQL injection, XSS, path traversal, bad protocol use
Bot managementTell humans, good bots and bad bots apart; protect logins and checkouts
GatewayAuthentication, per-client limits, request size and timeout limits
Origin protectionBackends accept traffic only from the edge

Rollout

Detection (count) mode firstLog what would be blocked; tune false positives
Then block, rule group by rule groupWatch blocked-request dashboards and support tickets

10 · Global traffic and failover

Steering methods

GeoDNSAnswer by the resolver's location
Latency-based DNSAnswer with the region measured fastest from that network
Weighted DNSSplit traffic between regions by percentage
Failover DNSPrimary while healthy, secondary when not
Anycast global load balancerOne IP everywhere; the provider steers and fails over in seconds

Failover checklist

Health checkDeep enough to reflect users (a synthetic request), not just 'port open'
CapacityThe surviving region can take the extra load
DataReplication lag (RPO) known; writes allowed in only one place unless designed otherwise
DrillFail over on purpose regularly; measure RTO

11 · Managed options on AWS and Azure

AWS

CloudFrontCDN and edge TLS, functions at the edge
AWS WAF / ShieldWeb application firewall, rate-based rules / DDoS protection
Application Load BalancerL7 load balancing into VPCs and EKS (AWS Load Balancer Controller)
Amazon API GatewayManaged API front door: authorizers, usage plans and API keys, throttling
Global AcceleratorAnycast IPs and fast regional failover

Azure

Azure Front DoorGlobal edge: CDN, L7 global load balancing, WAF
Application Gateway for ContainersL7 load balancer for AKS, Gateway API and Ingress support
Azure API ManagementAPI gateway + developer portal; policies such as validate-jwt, rate-limit-by-key, quota-by-key
APIM self-hosted gatewayRun APIM's gateway in your own clusters, managed from Azure