Node doesn't run PHP or Ruby, but that really isnt a fair question. its like asking if Ruby can run PHP, or if Python can run Ruby. To create a node server, you set up an event listener on a port, and wait for incoming connections, much the same way that you can run Python/Django or RoR (ignoring mod_passenger et al). You run your node application either directly on port 80 for a single application server, or run it off a different port and proxy pass to it from Apache/nginx/Cherokee/Lighhtp/etc. The node process is always running, unlike PHP applications, which are usually started and stopped for every page load.
Node isn't a 'web server' in the sense of Apache, it merely contains a module that can listen on a network port and understand HTTP requests.
KnightExemplar wrote:I understand it isn't a 'fair' question, but I'm trying to understand its use case. And for right now, I see only a rather limited one. Clearly, it isn't a general-purpose web server. So that means it was designed for some niche purpose. But what purpose was that?
Users browsing this forum: No registered users and 7 guests