Diagnosing API Gateway Failures in Production (Course #gateway-ops-clinic)
For platform engineers, SREs, API operations leads, integration architects.
By the end, you can
By the end of this course, you will be able to diagnose an API gateway failure on any platform — a ceiling register, a limiter blast-radius measurement and a parity test suite — so that the next incident is bounded by evidence rather than by vendor documentation you have not read yet.
Running case study
Thornbury Freight routes customs, tracking and booking APIs for 9 countries through two gateway estates it inherited from an acquisition — one managed, one self-hosted on Kubernetes. Peak is 3,200 req/s at 06:00 CET customs cut-off, and the last two incidents were both limiter failures that let a partner send 8× its contracted rate without a single 429 being returned. Leadership wants one operating standard across both estates: p99 under 400 ms, no unregistered platform limit at go-live, and every incident closed with reproducible evidence.
Programme every line is something you do
6 modules · 18 topics · in course-flow order
-
Module 1
Limiters fail open, not closed
Objective. Measure what a distributed rate limiter actually enforces when its counter store is unavailable, and produce the blast-radius figure for your estate.
- Compute the failure multiplier: a 100 req/min limit degrades to 100×N when N nodes fall back to local counting
- Compare local, cluster and Redis-backed counting on one 3-node cluster and record the accuracy each delivers under a 60-second partition
- Write the client contract for a gateway that does not shed load — retry budget, jitter, and a 429-versus-503 decision table
-
Module 2
Find the ceiling before production
Objective. Inventory the published limits a design touches and build the ceiling register that makes each one a deliberate choice.
- Catalogue the ceilings your design crosses — payload, mapping template, frame size, integration timeout — and mark each hard or quota-raisable
- Trade one ceiling against another: raising an integration timeout from 29 s toward 300 s can be paid for in account-level throttle quota
- Review the register at every design change, targeting zero unregistered platform limits at go-live
-
Module 3
The evidence the gateway withholds
Objective. Establish what the platform does not record and assemble the missing evidence before the incident that needs it.
- Prove the gap: log events truncated at 1024 bytes silently drop request and response bodies from the audit trail
- Separate load indicators from traffic counts — a capacity metric that moves with zero requests is not a request count
- Stand up the evidence you must own yourself: correlation id, upstream trace and sampled payload store with a 30-day retention target
-
Module 4
Every hop rewrites the request
Objective. Diff the request a client sent against the request a backend received, and catalogue every transformation the gateway imposed.
- Run a 12-case header and query diff across the gateway and record every drop, remap and case-sensitivity change
- Locate the identity break: an Authorization header dropped under one auth mode reaches the backend under another
- Write the content-negotiation tests that catch a gateway honouring only the first Accept media type
-
Module 5
Config that does not travel
Objective. Replay one policy set across two implementations and document precisely where portability stops.
- Run the same policy set on two gateways and record which of the 6 failure families diverge
- Read a conformance claim precisely: it covers one Route-and-Profile combination plus only the extended features the implementation itself claims
- Gate drift in CI by reconciling declared against running configuration on every merge, failing the build on divergence
-
Module 6
Plan the exit before the entry
Objective. Design the migration and rollback path for a gateway estate before the first route is moved.
- Classify every annotation and policy as translated, implementation-specific, or without equivalent on the target
- Prove parity before traffic moves, targeting 100% of routes covered by an automated parity check
- Rehearse the reversal rather than documenting it, inside a 15-minute recovery window
References & Official Documentation every claim above has a source
Module 1
- RFC 6585 — Additional HTTP Status CodesSpecification
- Rate Limiting Advanced pluginMuleSoft Docs
Module 2
Module 3
- Amazon API Gateway important notesMuleSoft Docs
- Capacity of an Azure API Management instanceMuleSoft Docs
Module 4
- RFC 9110 — HTTP SemanticsSpecification
Module 5
- Gateway API implementationsMuleSoft Docs
Module 6
- Announcing Ingress2Gateway 1.0MuleSoft Docs