Replies: 1 comment
-
Postgres has a pretty descent query cache, so adding a redis or memcache layer to on the other hand, we have an architecture where the OAuth service is separate from the Resource, and the DBs are isolated, so we're making over-the-wire API calls to the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The idea here is to create the access token inside the DB and Redis at the same time. If the token is revoked then we update also attribute in redis. Since we are searching for this on every query, it would be faster to do this from redis instead on DB. The workflow would be:
- It does not exist
TOKEN DOES NOT EXIST
- It exists and not revoked
- We create entry in Redis DB
Beta Was this translation helpful? Give feedback.
All reactions