Can you run Apache and node at the same time?

Does Node.js require Apache?

At the moment, I'm looking at building a Node.js-based server that will host a couple of REST APIs.

On my main machine, I'll have a standard Apache installation. Can I run these Node.js servers using the Apache server, or do I need to install Apache on the server in question? I should also add that Apache is currently installed on the machine in question. The question here is when to use "modnode" or "modhttpd". In order for it to work, Node needs to be started asynchronously (see the section "Asynchronous Requests") and you'll need a new HTTP server module to process these requests. So, no, if you have an Apache already running, it is not possible to make Apache accept nodeJS requests.

There is a module called "modhttpd" that aims to facilitate this process, but it's still too early for such a solution to be mature. It seems that, even though it is in active development, there is no stable version yet.

If the goal is just to serve NodeJS applications as standalone services, and not to have a Node app connected to an Apache instance, then there are much better ways to accomplish this than modhttpd or modnode.

Is Node.js better than Java?

The main argument I heard for Node.js, is that it is faster than Java.

I know that it is possible to do certain tasks (like networking) in Java faster than you could do them in Node.js, but in general is it? Node.js is not better than Java.

But in the case of the server-side of your web application, Node.js is one of the most advanced and most powerful technologies out there.

The speed difference of Java vs.js is negligible. If anything Node.js is slightly slower than Java.js is faster than Java for certain tasks. For example, networking.js is also faster than Ruby.

So in this case, yes Node.js is better than Java.

If you want to know more, check out these links: Why is Node.js so much faster than Java, Ruby, or Python? What are some Node.js performance advantages over Java?js is faster than Java for some tasks.

But in general, they are both pretty fast. Here's a benchmark that was done by nodejs.org comparing node.js to java.

And here's another benchmark, comparing Node.js to Java.

Related Answers

Can I use socks5 on Android phone?

The only app I have that has a proxy setting is Opera Mini (it'...

Can you run Nodejs on Windows?

As I'm using apache to serve pages, I'm wondering if node js really requir...

Does NodeJS need Apache or Nginx?

I am developing an eCommerce application in Node. Js which makes u...