I'm facing a strange issue. My NodeBB server uses mongodb to store sessions. Every ~5 seconds there is a query for session. I checked, that method called is
.get() from session storage (connect-mongo). It looks like this method is called for each session id.
During this peak there is a lag on a forum.
Is there any native express-session behavior that might cause so many requests?
I have checked that in NodeBB core there is only
validateSession method that checks session, but I'm not receiving that many socket events.
Many thanks for your help
In the meantime I will remove all active sessions and try to store sessions in redis.