# Kong oauth2 in redis

**URL:** <https://discuss.konghq.com/t/kong-oauth2-in-redis/9366>\
**Category:** Feature Requests & Feedback\
**Created:** [November 15, 2021, 1:44pm UTC](https://discuss.konghq.com/t/kong-oauth2-in-redis/9366 "2021-11-15T13:44:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmazelier](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rmazelier](https://discuss.konghq.com/u/rmazelier)\
**Post date:** [November 15, 2021, 1:44pm UTC](https://discuss.konghq.com/t/kong-oauth2-in-redis/9366/1 "2021-11-15T13:44:11Z")

</div>

I am in a situation where I’ve too many call to my postgres db due to the use of the oauth2 plugins. that’s true that my client are not using very well oauth and request too often new oauth tokens but still the expiration logic make too many call to postgres as well.

Also the use of oauth force to be dbfull which is a big concern to me.

So my proposal is to move the token storage to something like a redis. this way we can have the best of both world. a dbless config and a fast storage.

I’ve read the code and I don’t see big blockers.

Wdyt ?

---

<div class="post-metadata">

**Author:** ![Pratham](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pratham](https://discuss.konghq.com/u/Pratham)\
**Post date:** [October 10, 2024, 6:48am UTC](https://discuss.konghq.com/t/kong-oauth2-in-redis/9366/2 "2024-10-10T06:48:30Z")

</div>

Hi, were you able to achieve this? We are working on a similar use case and would really appreciate your guidance.
