4 ms·
"Some webapps might need 10 servers if you write it in php or ruby on rails, but may only need 1 server if you write it in c/java/something else" @axod, this s
by figured 18y ago
"Some webapps might need 10 servers if you write it in php or ruby on rails, but may only need 1 server if you write it in c/java/something else"
@axod, this statement is completely out to lunch. I don't even know where to start.
- axod 18y agoYou don't believe a custom written lower level implementation would be more efficient than using a general purpose framework stack?
- njharman 18y agoI think he believes network or disk i/o becomes the dominate factor long before cpu for 99% of webapps.
- axod 18y agoI'm not talking about the speed at which code executes, I'm talking about how many users you can support with a single server. Or how many servers do you need to support N users.
- figured 18y agoaxod, you set yourself up with the 10 to 1 comment. I work every day in C# and we are currently moving all development to Java, at home I code in ruby. I will tell you from experience that your language plays a very small part in how fast your web app works. I will say without a doubt that programmer competence is the real factor. How the code is written will determine more how it runs. But for the sake of argument I can guarantee that if you wrote a web app the exact same way in Java and then ruby, or basically any modern language, one would not consume 10 times the resources of the other. Other factors will start to bottleneck you long before that, bandwidth, memory, cpu, etc.
- axod 18y agoI'm not talking about pure language choice. When you write php, you probably have to put up with apache. Maybe you also put up with using a database. It's those things that can limit your scalability.