I am currently using Heroku’s Memcached in a Rails 3 app and would like to move over to Elasticache because the pricing is much more favorable. Is this possible? Is the configuration relatively straightforward? Is there anything that I should be aware of as regards the performance?
Share
DANGER: I do NOT recommend using this solution for production use. While this does work, @btucker pointed out that it allows any Heroku-hosted app to access your ElastiCache cluster.
Yes you can. The setup is similar to the guide Heroku has on Amazon RDS. The steps that differ go like this:
Allow Heroku’s servers ingress to your ElastiCache cluster like the RDS guide explains but replace the
rds-commands withelasticache-ones:Set a Heroku config value for your production app with your cluster’s hostname:
After that, follow the Memcache Rails setup, and you’re set.