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

Idempotency service #149

Open
PhilipSkinner opened this issue May 26, 2022 · 0 comments
Open

Idempotency service #149

PhilipSkinner opened this issue May 26, 2022 · 0 comments

Comments

@PhilipSkinner
Copy link
Owner

Create a new shared idempotency store.

This service must record incoming idempotency keys in an internal database (can be file system based - redis/memcached would be better).

The constructor for the idempotency store must take in the name of the service it is storing idempotency keys for - and the keys need to be scoped per service so that the same idempotency key received by two services do not conflict with each other.

Idempotency keys should be cleared out after a specific period of time - 5 minutes (? this is an assumption, is this correct?).


This service needs to provide two methods:

  • keyExists(key) → returns true/false if the key already exists within the store
  • addKey(key) → adds the key to the store if it does not already exist
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