Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
devraj opened this issue Mar 12, 2023 · 0 comments
Assignees
Milestone

Comments

@devraj
Copy link
Member

devraj commented Mar 12, 2023

All requests should be idempotent, 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

@devraj devraj self-assigned this Mar 12, 2023
@devraj devraj added this to the beta-1 milestone Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant