Hi I just published mongo-getdb which is the way I use to connect to mongodb. I did this module because connecting to mongodb with the defacto driver, "right" is far from trivial.
Most of the time you just want to have a the url to mongo in your env and call something to return a db instance which should be singleton for the lifecycle of the application. KeepAlive=300 seems to work well on some cloud infrastructures like Azure. Don't know why to be honest, and there are other settings that have proven to be OK for us most of the time. Any feedback is welcome. https://github.com/jfromaniello/mongo-getdb https://npmjs.org/package/mongo-getdb regards, -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
