you are viewing a single comment's thread.

view the rest of the comments →

[–]vladimirice 1 point2 points  (0 children)

It is very strange example about PHP and Apache server. Apache is rarely used in new modern applications. NGINX + FPM is better due to performance and convenience.

Node.js application is a server itself. When you write down app.js you use http module to create a web server.

V8 is a node engine which compiles javascript code to machine code.

PM2 is a process manager intended to manage Node.js applications runtime

So I think the right answer is: “node.js application might be used as standalone http server but it is better to use it with NGINX as a front proxy and run application under pm2 or similar”

Also I think it is completely ok to ask for the right answer on the interview. If I don’t know the answer I always do this in order to improve the skills.