Recommended driver MongoDb

Hi all

What’s best driver for MongoDB?
Looking here: https://godoc.org/gopkg.in/mgo.v2 ( UNMAINTAINED) - hmmm…

Better to use this one: https://github.com/mongodb/mongo-go-driver

What’s better choice?
Your experiences about?

Thx

Short term mgo, specifically the community fork at https://github.com/globalsign/mgo, is probably more reliable.

Long term I expect the official MongoDB team driver - https://github.com/mongodb/mongo-go-driver - to become the de facto standard as the MongoDB team seems to be giving it some serious attention. The only “problem” is that this driver is currently in alpha which means it might not be quite ready for production usage.

If I were building something right now I’d probably use the one from the MongoDB team, but I’m a little more willing to take on the risk of an alpha driver. If you need something more reliable and stable then mgo may be a better option for you right now.

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.