A
A
Andrey Abramov2020-05-06 17:47:45
Nginx
Andrey Abramov, 2020-05-06 17:47:45

Why is NGINX unit needed for go/node.js?

How does an NGINX unit for a language that is itself a web server (meaning "not needing an application server"), such as go or node.js, differ from the traditional configuration of NGINX as a proxy in front of the application? (NGINX as a proxy vs NGINX unit in the context of "standalone" languages)

Thanks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
marsdenden, 2020-05-08
@marsdenden

Nginx is a web server. This implies multithreading, the ability to hang many sites on one ip, and other goodies.
The node is single-threaded, all sorts of bells and whistles like webworkers are crutches, normal production under a high load can be done, but difficult (IMHO).
Try, test, load, feel the difference

A
Alexander Filippenko, 2020-05-08
@alexfilus

unit has an API. You can change settings, add/remove application instances. I don't see any other uses.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question