auth with Fastify and redis

When it comes to db session strategy in NextAuth. I used to use a Prisma adapter that stores the session in MySQL db but afaik that's not optimal for bigger apps especially if there's lot of queries and it should be stored in a redis db instead. Now im trying to build a simple auth system using Fastify and Passport js with MySQL for storing users info and a Redis db for storing sessions. But idk really how to do that and i searched lot but i didn't find anything. Should i stick with MySQL there gonna be lot of requests btw or should make a redis db for that. If yes how can i do that?
0 Replies
No replies yetBe the first to reply to this messageJoin