By: Gk Parish-Philp
Date: June 6th, 2013
Tips and tricksto get the most out of Heroku
- Beginnings
- Why Heroku
- Issues
- Hacks
- Additional Tips
- Appendix
- Wanted to move beyond localhost development
- Realized there was a lot to learn to build an application
- Partnered with a good friend that was a back-end dev
- Business requirements caused for large volumes of traffic
- Partner was spending 12 hrs/mo. on sysadmin work
- Expensive, but worth it if you value your time and sanity
- Idle-Dyno Fail - Dyno's spin down when not in use
- Single dyno fails under heavy load
- Enable New Relic Addon
- heroku addons:open newrelic
- Settings > Availability Monitoring > Enable (Keeps Dyno Awake)
- Enable Unicorn
- Almost Doubles Performance
- Add memcachier addon to heroku
- Add memcachier and dalli gems to project
- Create CDN Account
- Configure DNS settings
- Improve Rails Application Performance
- Sync Assets to Amazon S3
- Move long running processes to background workers
- Use an app like HireFireApp to manage worker processes
- Use an EC2 Hosted DB
- Use Multi-App Service Architecture
- You can only get so far on a free lunch
- Source Code: https://github.com/parishphilp/herokufu
- Load Testing: http://blitz.io
- Memcache: https://devcenter.heroku.com/articles/memcachier
- CDN: https://www.cloudflare.com/
Thanks Kevin!