Explain it simpler
In API Gateway, editing your API is like editing a draft. Callers do not see your changes until you publish a snapshot, called a deployment, to a stage. A stage is a named address such as dev or prod, each with its own settings. Stage variables are small settings stored on each stage, so the same API can call a test backend from dev and a real backend from prod. A mock integration lets API Gateway answer requests by itself with a fixed reply, which is handy before the real backend exists. A canary release sends a small share of a stage's traffic to the new snapshot first. It is like a newspaper: editors change the draft all day, but readers only see what goes to print.
At Riverbend Outfitters, Tomas fixes a bug in the inventory API's request validation, saves the method in the API Gateway console and messages the mobile team: try it now. Twenty minutes later they reply that nothing has changed. He checks again: the method looks right in the console. Meanwhile, the front-end team is blocked because the new returns endpoint has no backend yet, and the release manager wants the next version tested on a slice of real traffic before everyone gets it. Three problems, and all of them come down to how API Gateway separates what you edit from what callers actually reach. What is Tomas missing?
Amazon API Gateway separates the API you are editing from the API your callers reach. In a REST API, editing resources, methods, integrations or mapping templates in the console or through the API changes only the working definition. Changes go live only when you create a deployment, which is a point-in-time snapshot of the API's configuration. A deployment is associated with a stage, a named, callable reference to that snapshot such as dev, test or prod, reachable at an invoke URL of the form {api-id}.execute-api.{region}.amazonaws.com/prod. Forgetting to deploy after an edit is a classic reason a change 'does not work', and on the exam the phrase 'changes are not visible to clients' points straight to creating a new deployment to the stage. HTTP APIs, the simpler and lower-cost API type, can enable automatic deployment for a stage so changes go live without a separate step.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 8 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.