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

working with idempotent API design #76

Open
lrlna opened this issue Feb 22, 2017 · 1 comment
Open

working with idempotent API design #76

lrlna opened this issue Feb 22, 2017 · 1 comment

Comments

@lrlna
Copy link
Member

lrlna commented Feb 22, 2017

An interesting thing to consider with merry is idempotent API design when working with server/client communication and, most importantly, failures.

PUT and DELETE request normally should deal with the requests sent over to idempotent server endpoints. Using an idempotent key (or a unique identifier generated by the client on each request) to make sure the operation processed by the endpoints only happens once is something to be considered.

The question here is whether or not merry should handle some sort of check for the idempotent keys. Alternatively, should we document this pattern as part of our guidebook.

Thankssss ^___^

reference: stripe engineering blog

@yoshuawuyts
Copy link
Collaborator

Cool, although seemingly large, exponential backoff library https://github.com/matthewmueller/try-again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants