Matt Thomas
Matt Thomas

Reputation: 1115

Website Speed With Heroku

so I've been working on a website with Heroku. The site is called Staple Sounds. It's a music website that's built using Ruby on Rails with the SoundCloud API.

I've used a lot of AJAX to improve user's website use when browsing for music. The problem I'm having now, is the website is terribly slow.

I'm pretty new to web design and have no way to know how to go about optimizing the site.

I've done some research and found that the sits TTFB is EXTREAMLY long. Here's an image

Chrome Developer Tool.

I'm thinking about paying for a Heroku DOM. I was thinking about getting the hobby level one. Will this improve my sites performance significantly?

Thanks for your time.

Upvotes: 0

Views: 156

Answers (1)

Troy SK
Troy SK

Reputation: 1289

Without analysing the actual code of your app, here is how I would go about it.

  1. Use unicorn or phusion passenger as the app server.
  2. Move out all the assets to a cloud service/cdn with the help of fog gem.
  3. Do as less processing at runtime.
  4. Use curb gem for API calls.
  5. Once these are done, use newrelic to find out the what else and fix them one by one.

Also have a look at https://github.com/ankane/shorts/blob/master/Rails-on-Heroku.md which details Instacart's Heroku learnings.

Hope this helps. :)

Upvotes: 1

Related Questions