image-minify-api
image-minify-api copied to clipboard
Feature: Implement Quota
Implement Quota per User.
Hello, i'll take it.
@denis-n-ko thank you!
Hello, btw is there any requirements for this feature? Now i am implementing it in the following way:
- Each apiKey will have some count of available quota.
- 1 quota will be burned when api is used.
- If apiKey will not have available quota, api request will be rejected.
Hello,
your plan sounds good to me. A good feature would be a quota in a range of time. e.g.: the user can make 100 api calls per day.
Greetings Ingo
This issue is still open.
what do you think to use Redis to track quota? We will reduce the processing and response time in this way
Started implementation - added 3 db fields for user quote per month, day and hour, updated user:add and user:list command working on, using redis as data storage for quota calculations