Are there any best practices for implementing rate limiting for an OAuth2 protected api?
I realise that REDIS is often used for this, but since I'm using a db to persist the tokens, I was thinking of using that for rate limiting as well. It would store the maximum number of queries for each token and decrement that each time the token is used and then reset the counter daily or hourly.
Any major problems with that approach?