Description: Retrying a GET request is safe, but retrying a POST request (like executing a trade order or mutating a database record) can result in catastrophic duplicate actions if the network drops the HTTP response. This example demonstrates how to safely retry state-changing HTTP requests using Idempotency Keys.
Description: Retrying a GET request is safe, but retrying a POST request (like executing a trade order or mutating a database record) can result in catastrophic duplicate actions if the network drops the HTTP response. This example demonstrates how to safely retry state-changing HTTP requests using Idempotency Keys.
Architecture & Implementation Requirements:
examples/http_idempotent/main.go.resile.Doloop begins.Idempotency-Key: <uuid>).resile.WithRetryIfFuncto explicitly prevent retrying on400 Bad Requestor401 Unauthorized, restricting retries exclusively to500 Internal Server Error,502 Bad Gateway, or504 Gateway Timeout.Acceptance Criteria: