Artikelerreichbar
Malcolm Featonby, Making retries safe with idempotent APIs (Amazon Builders' Library)
aws.amazon.com (externe Seite)
Ein Aufsatz aus Amazons Builders' Library über die eigenen Bauregeln für Schnittstellen, die man gefahrlos wiederholen kann, also Selbstauskunft des Herstellers. Er verlangt, dass ein Dienst den Schlüssel einer Anfrage und ihre Änderungen in einem einzigen, unteilbaren Vorgang schreibt, und beschreibt den Abgleich, wenn eine Antwort ausbleibt.
geprüft 10.11.2026
Worauf sich diese Seite beruft, wörtlich, abgerufen am 16.10.2026:
we want to make sure that the result of the call happens only once, even if we need to make that call multiple times as part of our retry loop
bestätigt 10.11.2026Simply retrying the request could result in multiple workloads, which could have dire consequences.
bestätigt 10.11.2026the provisioning process has to perform a reconciliation to determine whether this workload is running or not
bestätigt 10.11.2026This ensures that we avoid situations where we could potentially record the idempotent token and fail to create some resources or, alternatively, create the resources and fail to record the idempotent token.
bestätigt 10.11.2026we return a validation error indicating a parameter mismatch between idempotent requests
bestätigt 10.11.2026