re: PHP vs Node? VIEW POST


I think it's interesting that we haven't mentioned that PHP (typically) runs in the context of a larger web server, and that NodeJS does not. In my experience Node applications typically provide a web server (like Express) and are then proxied through a webserver that serves a larger site, like Nginx or Apache.

Perhaps this is why we see many Node applications outside of a web server (command line tools, console utilities, etc.) and rarely see PHP being used for much aside from websites.

I'm not sure that NodeJS is all that much faster than PHP. While I suspect that NodeJS code might be faster at certain tasks, I suspect that PHP will be more performant in general.


Usually, the bottleneck is not the language but the database, followed by the framework. For example, it is possible to program a superb website on C++ (yes, it is still possible using fastcgi+), but it still could be slow because of the database.

It is the point:

We don't want to scale logic but data.


I agree but what can you say... Its just how it goes and how it has gone with perception

Code of Conduct Report abuse