A Simple Go Web App on Heroku with MongoDB on MongoHQ

Go is an extremely clean and fun language to work with and has a bunch of handy, modular, well documented packages out of the box. We can easily build a small web app using pure Go for handler functions, the net/http library for routing and serving and mgo as a MongoDB driver. The simple Go … Continue reading A Simple Go Web App on Heroku with MongoDB on MongoHQ

MongoDB text indexing in action

Recently, I had a good use-case to use MongoDB text-indexing and I gave it a shot. I found it to be pretty awesome - even though its not have full-fledged text-search engine capabilities (like facets etc.) it does the job for simple text searches. So, what did we want to do? We had the following … Continue reading MongoDB text indexing in action

MongoDB Map Re-Reduce and joins – performance tuning

"Why do we use map reduce in MongoDB? Cos it doesn't support joins." -  And everybody believes that now! I decided that it was time to try something different. I was amazed to see how little there is on the net about map re-reduce. And there is even lesser information about how to work with multiple … Continue reading MongoDB Map Re-Reduce and joins – performance tuning

Amazon EC2 and MongoDB configuration for great performance

Sometimes, we prefer using Amazon EC2 directly for our Rails stack. No offense  to Heroku but we need a more controlled environment; and no offense to EngineYard as they don't support MongoDB on their environment as yet. We were faced with several problems that we wanted to solve Control our environment without MongoDB hogging all … Continue reading Amazon EC2 and MongoDB configuration for great performance

Geolocation, Rails and MongoDB- a recipe for success

'Geolocation' seems to be the best dish being served today. Every web-portal, every mobile app wants to be sensitive to a persons location. Everyone wants to see information that is 'relative' or location sensitive. Whether its a deal portal, travel portal, social network - giving users information that is relevant to their location bring not … Continue reading Geolocation, Rails and MongoDB- a recipe for success