Techiio-author
Started by Bradley ReidOct 31, 2021

Open
Node.js + Nginx - What now?

1 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 1 VIEWES SHARE

I've set up Node.Js and Nginx on my server. Now I want to use it, however, before I begin there are 2 questions:

1. How should they work together? How should I handle the requests?

2. There are 2 concepts for a Node.js server, which is better:

a. Create a separate http server for each website that needs it. Then load all javascript code on the start of this system, so the code is interpreted once.

b. Create one single Node.js server which handles all Node.js requests. This reads the requested files and evals their contents. So the files are interpreted on each request, but the server logic is much simpler.

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance