Redis as secondaryStorage generate a lot of client connection to my redis server
Hello, i have setup my redis client inside auth.ts to use it as a secondaryStorage, i have added inside my code a small redis.on("connect",... to log when a redis client is created, and i have see that at each new page who use auth there is a dedicated redis client. (I have 6 pages, in my redis i can see 8 connection (next -> 6, me -> 1, backend -> 1)
Does i have this because i have a wrong better auth setup or something like that ?
My code :
1 Reply
My logs :
And if i have this issue with redis, does i have also a lot of db connection with prisma ?