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

Exercise: A Unique Random Access Code #47

Open
ylorph opened this issue Apr 16, 2020 · 1 comment
Open

Exercise: A Unique Random Access Code #47

ylorph opened this issue Apr 16, 2020 · 1 comment

Comments

@ylorph
Copy link
Owner

ylorph commented Apr 16, 2020

You must assign a unique access code in a (pseudo) random fashion.
The range of access code at your disposal is [1 000 000, 1 999 999]
The access code will be used to give you access to the system at a certain day
Once an access code is used , it can not be reused for 6 months.
An assigned access code, giving access in the future, may be revoked at any time.
It is foreseen that up to 1 000 access codes will be used per day.

Solve this in an Event Sourced fashion.
Bonus point if the assignment of the access code does not suffer from Eventual Consistency

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

2 participants