I've built an Rails API that is hosted on Heroku. The API uses memcached to cache very large serialized objects to speed up the API response time. This works well, but as my API gets more traffic, the cost of memcached is just crazy. Right now I'm paying $160/mo for 2.5GB.
Is there a disk based solution that is more cost effective (trading off speed of course)? Has anyone tried MongoDB as their cache_store in Rails using the Mongo_Store gem? It seems the price/GB is about 3-7X cheaper for an SSD MongoDB on Heroku. For example, I can get a 40GB MongoDB cluster for $240/mo.
One big advantage of using Memcached with the dalli gem right now is that my large objects are compressed. Does MongoDB do this for me, or do I need to do this manually?