How to handle Redis failures

Hello,

We have recently upgraded to tyk 2.3.5 and while doing the upgrade realized again that the OAuth client ids are actually stored in Redis and are not backed up in Mongo or anywhere else.

So my question:
If there is a Redis failure :

  • Is there a recommended way to bring it up that is not using the Redis backup.
  • Is there a way to make sure OAuth access does not fail while we rebuild our Redis instance ?
  • Is there a way to fallback to Mongo during this time ?

Thanks,
Prashanth

Hello!

The only way to ensure reliability is to have Redis cluster or at least master slave configuration. Using Redis backup is totally legit. And there is no way to re-create a key using API so it will retain old key ID, because it is always generated randomly.

Leon, Tyk Team