marklogic-community / demo-cat

An application to help SEs find good demos and record bugs and RFEs on them. AngularJS talks to the MarkLogic database via the REST API.
Other
11 stars 17 forks source link

Move away from MemoryStore session store #201

Open ryanjdew opened 9 years ago

ryanjdew commented 9 years ago

MemoryStore isn't meant for production use. We should look into moving to another session store.

grtjn commented 9 years ago

@withjam has a good alternative if I am not mistaken.. :)

withjam commented 9 years ago

Yes, I made an implementation of a connect session store that uses MarkLogic to store sessions. https://github.com/withjam/connect-marklogic

ryanjdew commented 9 years ago

That is great @withjam. Should we be fine using the same ML REST app as DemoCat or would you recommend creating a separate REST app and database for node.js sessions?

withjam commented 9 years ago

Session data is very small and it goes into it's own collection, so I don't think it would need a separate REST app unless you have a compelling reason to do so. The only think to keep in mind is that the middleware itself doesn't take care of clearing expired sessions, so it may be something to monitor or clean up at some point.