Reputation: 3026
I am using koa and passport therefore I am using the koa-generic-session middleware to handle my sessions.
Now unlike the expressjs session middleware there isn't a big disclaimer in the documentation like such : The default server-side session storage, MemoryStore, is purposely not designed for a production environment.
Assuming the MemoryStore for the koa-generic-session is ready for production use, why would I use a heavy duty session store such as mysql or mongodb for sessions that come and go all day long? What additional capabilities would using one give me that MemoryStore doesn't?
Upvotes: 2
Views: 862
Reputation: 11947
In memory session store works perfectly for development but it has a couple of caviats for production use.
Upvotes: 2