governor icon indicating copy to clipboard operation
governor copied to clipboard

plans to separate check with token operation?

Open lyang24 opened this issue 2 years ago • 2 comments

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?

lyang24 avatar Oct 17 '22 22:10 lyang24

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

praetp avatar Oct 29 '22 19:10 praetp

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

lyang24 avatar Nov 21 '22 19:11 lyang24