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

Id generation service #146

Open
tshemsedinov opened this issue Aug 15, 2018 · 0 comments
Open

Id generation service #146

tshemsedinov opened this issue Aug 15, 2018 · 0 comments

Comments

@tshemsedinov
Copy link
Member

tshemsedinov commented Aug 15, 2018

Globalstorage Id generation service is a task generating Ids in advance and API to get generated Ids. Task will start on idle after application call API to get Id. Underlying database have table Identifier containing all Ids and its main parameters including field Family = Enum(...entity families...).key('Preallocated').

For example, task have configurable MINIMAL_PREALLOCATED (default 1000) and GENERATE_BUNCH (default 200) and current number of prepared records in Identifier marked as Preallocated is 980, somebody get a bunch of 10 identifiers, after that generation service should generate 200 records so number of preallocated will be: 1004 - 10 + 200 = 1194

@belochub belochub mentioned this issue Sep 24, 2018
2 tasks
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