3 ms·
There's a difference between optimization and reliability. For instance, Erlang isn't the fastest thing out there, but you can make some extremely reliable sys
by davidw 20y ago
There's a difference between optimization and reliability.
For instance, Erlang isn't the fastest thing out there, but you can make some extremely reliable systems with it.
I still think Rails is a winner because of how fast it lets you develop the application. Most of us will probably never see the massive popularity spike that something like twitter has. So, better to optimize for development time, and put code speed optimization off until it's necessary.
- SwellJoe 20y agoTrue...Optimizing for getting to that popularity level fast is the wise thing to do, and so the most productive tool to develop in is the best one. But...there are major costs to a lack of reliability, and they can rear their head before you reach that level of popularity. If you're not able to stay up during that all important first crunch or slashdotting or digg...you won't ever make it to the sustained popularity and growth that requires scaling up. RoR does seem to have some problems with that. Ruby is the slowest of the most popular scripting languages, by most measures. RoR is pathological with databases in some circumstances (not common cases, admittedly). And, from what I can tell most RoR stacks (Apache+fcgi, Mongrel, ngenix, Lighty, etc.) have one or more pretty serious flaws when scaling up. I'd still consider using it, since it's so much damned fun to write Ruby code.
- BrandonM 20y agoAhh, you're right. I should have said, "you need to expend some energy on optimization and ensuring reliability." I guess I was making the assumption that the software was basically working, but failing under heavy load, which seems to be an optimization problem. I let it be given that the software is correct, but perhaps that is not a safe thing to do. And I totally agree that Rails et al are great development platforms to get up and running quickly, but when that software begins to fail with increasing traffic, it's time to first reconsider your own code (algorithms and bulletproofiness (as Colbert might say)), and if that doesn't help, to consider rewriting at least parts in something else. I can't imagine the call stack for a single Rails function call (I'm actually not all that familiar with Rails). At the very least, it might be good to migrate some code from Rails to straight Ruby, and some of the auto-generated stuff to hand-tuned SQL. That's all I was trying to say.