Live data from Hacker News

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

news.ycombinator.com

1–10 of 13 posts

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

#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 common problem I've observed several times with low-performance frameworks is that you can run into performance pain before you've adequately vetted your project's ability to convert customers. By comparison, a high-performance framework allows you to be experimental and relatively reckless with your application logic. Your application code can be closer to brute-force with a high-performance platform, meaning you can optimize the application code later when the time comes, rather than bringing out the big guns of scalability.

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

#5

This is the wrong thing to worry about. Scaling problems are EXCELLENT problems.

Probably because my 1st language is Spanish, but what do you mean by EXCELLENT? (in Spanish, "excelente" means "admirable")

It's an execlente problem.

If you're bringing in enough customers to cause you scaling problems, then that's a good position to be in.

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

#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 ?...

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

#7
> What steps can I take while I write my web app from scratch right now, to ensure that it scales beautifully when it is launched?

That question is far to generic to have a useful answer. If you want to know how to design for scalability, you need to be more specific about what needs to scale and how than just "a Ruby on Rails web app".

There are a number of different things that can scale in an application, and what you need to make one of them scale well may be counterproductive to scaling another one.

OTOH, you are probably worrying about scalability at exactly the wrong time. You either should have a clear problem to address (which you haven't yet reached), or if you know what your scalability concern is before you've started writing your app (much less encountered an actual pragmatic problem), you should be asking that question before you choose the implementation language and framework (since particular choices there may be part of the solution.)

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

#8
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 ?...

I'd argue in favor of javascript based platforms/frameworks. Angular.js is a very powerful MVC (front-end) framework that's rapidly gaining popularity. If you combine that with a Node.js server written with something like express, you'll be cooking with gas in no time.

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

#9
There are a few rules I follow at the beginning of building an app.

- avoid n + 1 queries - shorten response time as much as possible without caching (focus on good code, avoid logic etc..., least db queries as possible)

- anything that takes longer than 100ms to process I use async processing to handle it.

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

#10
I see this come up every so often. http://www.techempower.com/benchmarks/#section=data-r5

https://www.hnsearch.com/search#request/all&q=web+framework+...

Performance really is relative. As they say: "If you always optimize for the future, you will never get there"

Many high end sites are run on rails. Load balancing/clustering will handle most traffic problems you might run in to.

Post reply on HN