Idempotency Layer

Glyue features a built-in idempotency layer for all integrations that enables callers of integrations to retry requests without concern of unintentionally duplicating the operation.

When the glyue-idempotency-id header is present, any subsequent calls from the same account with the same glyue-idempotency-id value will be treated as a duplicate request and will be returned the same response (status code + response object) as the initial request without re-running the integration.

Resending a request with an already-used glyue-idempotency-id is most appropriate when the client does not receive a response from Glyue, e.g. due to a network connectivity drop. In such situations, retrying a request with the same glyue-idempotency-id will allow the client to safely determine whether the operation actually succeeded, or if it should try again with a new glyue-idempotency-id.

Activating the Idempotency Layer

To activate the idempotency layer, add the glyue-idempotency-id header to the request, along with the unique ID.

Glyue guarantees that integrations will not be re-run if they are called with the same idempotency id within a 24 hour period, and instead the status and response of the first run will be returned.

IDs may be up to 64 characters long.

It is strongly recommended that a UUID generator is used to create the idempotency ID.

Sample Client Code

Last updated