6 ms·
Rails Performance – What You Need To Know
- mceoin 12y agoI keep hearing that Rails can be scaled, but how does that explain the fact that Twitter had to switch off of Rails in order to scale?
- prtkgpt 12y agoWell, Shopify is built in rails and its scaling extremely well. Rails can be scaled!
- obiefernandez 12y agoTwitter has a many-faceted, hugely complex architecture that to my knowledge still includes Rails.
- javiayala 12y agoNot to mention that by the time that twitter needed to scale rails the framework itself was very different and a little less powerfull. That goes to ruby as well.
- dataminer 12y agoGithub seems to have scaled fine on Rails.
- adymo 12y agoRails, as any tool, has its limits. When you're doing things at Twitter's scale, you need other tools.
- stevejpurves 12y agoI like the point on pushing work into a query instead of doing it in rails/ruby. That's not just a rails thing but helps on any framework/platform.
- nexitlabs 12y agoIt seems like rails in 2.1 has improvements in garbage collection, definitely need to learn more to high scale rails.
- javiayala 12y agoI think you mean ruby 2.1
- adymo 12y agoRuby 2.1 has a very important property: GC scales linearly with the amount of memory allocated. Before 2.1 GC performance increased polynomially. So, for example, processing 10k rows from the table could take 10 seconds, and 100k would never finish. With 2.1 everything I do actually finishes :)
- obiefernandez 12y agoRuby 2.1 is a huge step forward. Surprised that more people aren't talking about it.
- adymo 12y agoAnd I also like the fact that GC in 2.1 no longer takes 50-60% of execution time. Usually it's more like 30-40% now.
- javiayala 12y agoI like the post. Is always great to learn new or different ways to solve the same challenge. Great tutorial.