anomaly / anomaly/gallagher

Support idempotency for safely retrying requests without accidentally performing the same operation twice

Ouverte
#2 0 commentaires 0 réactions 1 personne assignée Réclamée par @devraj Voir sur GitHub
Langage dominant
Python
Étoiles
17
Forks
2
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

All requests should be [idempotent](https://en.wikipedia.org/wiki/Idempotence), to ensure that failed requests can be retried without accidentally repeating the same request.

This can be achieved by adding an `idempotency_key` to each requests and the API requestor ensuring that two requests with the same ID are never in flight at the same time.

If the user of the API client fires multiple requests of the same nature they will be assigned a separate `idempotency_key` and a duplicate request will be sent.

The intent of this feature is to ensure that the API client is behaving as expected and duplicate requests are intentional on an application level.

See also #18

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.