Scaling a Ruby on Rails app on Heroku
28-Mar-2019 440
I have had to spend a considerable amount of time scaling Rails applications for things like major product launches to live TV events like SharkTank and Beyond The Tank and national TV marketing campaigns.From all that experience, the most effective way I have found to scale a web application is to do the following:Implement sufficient application performance monitoring (I use NewRelic)Gather data (ideally, load test until you scale out)Identify what the bottleneck wasFix the bottleneckš Repeat (until you hit a goal or run out of time)The reason why this is so effective is because it ensures that you spend your time fixing the actual constraint of your system.A great way to think about this come from the Theroy of Constraints:Any improvements made anywhere besides the bottleneck are an illusion. -Gene KimSo, in my experience, when scaling a Rails app the bottleneck typically falls into one of two large areas:The Database (Heroku Postgres in our case)The Rails ApplicationLetās dive into each of those.
Scaling a Ruby on Rails app on Heroku #ruby #rubydeveloper #rubyonrails #Scaling #Rails #Heroku #heroku https://rubyonrails.ba/link/scaling-a-ruby-on-rails-app-on-heroku