Live data from Hacker News

Ask HN: How can I ensure my Ruby on Rails App will be scalable?

news.ycombinator.com

11–13 of 13 posts

Re: Ask HN: How can I ensure my Ruby on Rails App will be scalable?

#11
The main thing you need to do in order to prevent scaling issues are making sure you aren't making an absurd amount of queries per page request. I once worked on a project that was taking close to 10 seconds at scale. Turns out it was making close to 1000 DB queries per request because they were doing iterative logic and making 3-4 db calls per iteration (which was also being done in the view...) I moved it all into the controller and it was sub 1 second, and had about 80 queries left over. This is actually very common to see in Rails apps, even with some of the more prestigious consultancies out there.

If you avoid doing things that absolutely won't scale you will be fine. Rails has no issues scaling, for 99.9% of the use cases. Regardless of the framework you use you will still have plenty of scaling issues if you have Twitter/Facebook level of success. But again that is a great problem to have.

Re: Ask HN: How can I ensure my Ruby on Rails App will be scalable?

#12
post #4

If you are worried about performance because it nags at you and not because you have a specific known performance pain, I would suggest selecting a higher-performance platform and framework so that you can defer scale concerns until much later. With a high-performance framework, you can build your application with the peace-of-mind that performance won't be a problem unless your product has decent market traction. A…

What are you suggesting is a higher performance platform? You may get 2-3 times faster with some other framework but you aren't going to see an order of magnitude increase and you are probably going to be sacrificing ease of development.

Rails isn't the answer to every programming problem, but I don't think that Rails has any more of a scalability issue than any other framework.

Re: Ask HN: How can I ensure my Ruby on Rails App will be scalable?

#13
post #6
post #4

If you are worried about performance because it nags at you and not because you have a specific known performance pain, I would suggest selecting a higher-performance platform and framework so that you can defer scale concerns until much later. With a high-performance framework, you can build your application with the peace-of-mind that performance won't be a problem unless your product has decent market traction. A…

Which platforms / frameworks would you recommend over Rails ?...

JVM languages.
Post reply on HN