AWS API Gateway 00:00:01 A product lookup through a REST API A shop exposes a product endpoint through an Amazon API Gateway REST API. This example uses a Lambda authorizer, a configured stage cache and a backend integration. Features differ across API Gateway API types. TLS ends. Stage and path choose the method's settings. The authorizer looks at the token and returns a policy. Nothing stored for this key. Lambda runs and reads the table. The same request within the lifetime is answered from the cache. No function runs. A cached response can avoid invoking the backend, but the cache key must distinguish every caller input that changes the representation. The customer still needs the correct response, even on a fast hit. 00:00:47 The loud partner and the shared budget An individual partner receives a flood of requests. Per-client targets and shared regional account capacity protect different boundaries. A healthy allowance at one boundary does not reserve permission at all the others. 30 a second from the partner. Every layer says yes. With the illustrated partner target of fifty requests per second, a steady eighty per second can lead to roughly thirty throttled requests per second after burst capacity is used. Another API in the same account and region can consume shared quota. Now even a normally quiet client may be throttled. Ask for a higher limit before launch, cap the launch API at its stage, or give it its own account. Throttling and usage plans can be best-effort targets. Define client handling for a throttled response, arrange suitable quotas before a launch and measure the capacity of the actual integration. 00:01:43 What exactly did the authorizer cache? The same token is used on two methods. If an authorizer caches its answer only by that token, an answer constructed for the first method can be reused on the second. GET /users. The authorizer returns a policy for GET /users only, and it is cached. The second request uses a different method, but the original narrow cached policy does not authorize it. The authorizer now returns everything this caller may do. A previously cached allow decision may remain effective until expiry or invalidation. Build that delay into the revocation contract. Choose identity sources, policy scope and lifetime together. A cache entry must neither erase a permission the caller has nor preserve a grant beyond the revocation delay your service can tolerate. 00:02:35 Put a small fraction on the new deployment Version seven serves the current REST API stage. A canary points a small share of requests at version eight. The important question is whether you can tell those two groups' outcomes apart. The stage serves deployment 7. Edits to the draft change nothing. 5% of requests go to deployment 8. Errors rise in the canary, so the operator removes it. About five percent of requests were selected for it under the illustrative weighting. The corrected deployment passes the canary and takes all traffic. Compare the operation's success and latency in the canary and baseline before promoting. A low traffic percentage alone cannot guarantee a small business impact. 00:03:19 An export is a job, not one long wait A customer asks to generate a large report. The computation may outlast the configured gateway integration timeout. A timeout at the edge does not necessarily stop work already running behind it. In this configured example the request times out before the job finishes. The customer's error says nothing certain about whether the report is still being generated. The gateway writes the job to the queue and answers 202 with an ID. A worker takes the job and stores the file. The client asks for the state, gets a presigned URL and downloads from storage. A job identifier, durable status and a repeat-safe submission contract let the customer recover a lost response without launching duplicate exports. The gateway then manages short requests while the worker owns long work.