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

plans to separate check with token operation? #152

Open
lyang24 opened this issue Oct 17, 2022 · 2 comments · May be fixed by #211
Open

plans to separate check with token operation? #152

lyang24 opened this issue Oct 17, 2022 · 2 comments · May be fixed by #211

Comments

@lyang24
Copy link

lyang24 commented Oct 17, 2022

Hi we have an use case to perform check and and token operation independently. for an example when a request come in we check if the remaining quota is enough if so we let request hit db and get the actual amount of token base on db response and finally we try to take n token out?

is the above scenario supported?

@praetp
Copy link

praetp commented Oct 29, 2022

Is your point that you do not know up front how heavy the database operation will be ?

@lyang24
Copy link
Author

lyang24 commented Nov 21, 2022

yes exactly I want to use a billing mode calculate how many tokens after we ran the requests.

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

Successfully merging a pull request may close this issue.

2 participants