Okay, so today i found a great service online called MongoLab, MongoLabs is a DBaaS (Database-as-a-service) which allows me to create and host a MongoDB database in the cloud with just a few clicks.
I’ve wanted to give MongoDB a go for a few of my pet projects, but managing and hosting my MongoDB database is a task I’d rather leave to the professionals, since setting up backup rutines and and that technical stuff is not my cup of tea :-)
What i think so far
One of the great things about MongoLabs is that they give me a graphical interface for viewing my collections and my data. I’m no big fan of the command line so this is a big thing for me.
Another thing i liked is how easy it was to get started. I literally took my only 5 minutes to create my account, create a database, setup a database user, and connect my app to the database.
Also it’s great that i can choose which cloud provider i want to host my MongoDB instance. This means that i can choose a provider that has a datacenter near my location, and this also allows me to get extremelly low latency since my apps are probably hosting on one of the cloud provides that they support anyways.
When writing this MongoLab had support for: AWS, Google Cloud Platform, Joyent, Rackspace and Windows Azure.
I don’t have much negative to say yet, since i’ve only just started using the service, but from what i’ve seen so far, i really like it.
Getting started
Once you’ve created your account, you create your database by giving it a name, choose a cloud provider, and choose your price tier.
Once that’s done you end up with a connection string that you can paste into you app.
He’s a small sample of what it could look like in a NodeJS app using ExpresJS and Mongoose:
1 | /** |