For Node.js applications, when to use port 3000 vs 8080? -


i have been reading on tutorials, , although of them use port 3000 node applications... of them use port 8080 instead. wondering recommended practice, , under circumstances should use other. guidelines?

there isn't official node.js end, in, there aren't official remarks pertaining this.

you'd find many people who'd confused using port 80 , 443 http , https respectively standard. standard standard pc , these details revealed in document released in 1994 support of t.b. lee.

for general network usage try not use ports bellow 1024 otherwise you'd have have root access on network server run process. other guy said, use unused port , you'll fine above 1024 or else you'd need root access.

i'd suggest use reverse proxy engine make things more easier , suitable. preferably nginx, they'd have multiple instances of server which'll utilize server properly. although isn't necessary make use of reverse proxy because things work without anyway.

i suggested reverse proxy because don't make full use of capacity of server available use , hence using clusters reap more performance.

note : if not going use application in real domain , trying things please ignore reverse proxy part, important if want scale application.

references

click here


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

python 3.5 - Pyqtgraph string in x tick -