Answer the question
In order to leave comments, you need to log in
Is nodejs a complete server?
I know that nodejs is a software platform. The downloaded package includes a server that interprets js and can process requests if you write certain code. But this server, as far as I understand, cannot be used as a full-fledged one, that is, it's just a js runtime on a machine and not in a browser, no more. And in the case of writing full-fledged projects, you need to use Apache or nginx. Explain, please
Answer the question
In order to leave comments, you need to log in
By itself, node.js is just a platform for writing applications in JS, in which there is some api written partly in JS, partly in C ++
. The node is not a full-fledged web server, but it contains a lot of things out of the box to simplify life, so to speak
. You are not strong in the specifications of HTTP, TCP, in networks, etc., it is easier to put nginx in front of the node as a reverse proxy
. , but in terms of return, the dynamics sharply bypasses possible alternatives with nginx due to the lack of an overhead for proxying, if this topic is interesting, you should start by studying RFC-7233
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question