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

Http: Automatic request idempotency #3708

Closed
jessekelly881 opened this issue Sep 30, 2024 · 2 comments
Closed

Http: Automatic request idempotency #3708

jessekelly881 opened this issue Sep 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@jessekelly881
Copy link
Contributor

jessekelly881 commented Sep 30, 2024

What is the problem this feature would solve?

It would be nice to have a set of client and server middleware that automatically handle generating and adding an idempotency token to all requests from the client and handling caching and resending of responses for a repeated request with the same token on the server.

What is the feature you are proposing to solve the problem?

A set of client and server middleware that transparently handle generating tokens, adding tokens to client requests, caching responses for a given token, and reserving the cached value when a request with a repeated token is received.

What alternatives have you considered?

No response

@jessekelly881 jessekelly881 added the enhancement New feature or request label Sep 30, 2024
@mikearnaldi
Copy link
Member

I don't see how idempotency can be automatic, idempotency keys are domain specific

@mikearnaldi
Copy link
Member

also it would need a serializeable request/response and a transactional storage which is propagated to user-land, feels out of scope imho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants