What is "web server" in NodeJS and why it should be used for enterprise apps in 2016 instead of Java/Go/PHP/Python?
Where are configs, logs, how to enable/disable HTTPS, HTTP2, gzip, caching and everything else possible in nginx/apache out of the box?
Why NodeJS should be used for backend, when NodeJS is a “right tool”?
Any real 2016 benchmarks/links NodeJS vs Go or vs PHP7 or?
What NodeJS can other platforms can’t?
Please provide links, statistics, benchmarks, business reviews, recommendations as much as possible.
Write your answer…
It isn't always about performance when choosing a technology. It's a combination of tools and technologies that help you build applications with high performance. Every tool has its ups and downs but when combined together, they can be really powerful.
PHP7 can be used together with NodeJS to build a real-time web application. I had a chance to build one few months ago. It was fun.
As for nodeJS and performance, LinkedIn, MySpace, PayPal, Netflix and many other famous web apps and services use it.
As for logs and configuration, you have to probably look for npm packages that allow you to do that, since that's how the NodeJS platform works.
Check out NodeJS at Netflix, also search for their tech blogs where they explain more why they switched and how better it is with it.
Remember that, no web stack is perfect, you just have to choose the tools that are best for your application and when you get into trouble, scale it accordingly.
Hashnode is building a friendly and inclusive dev community. Come jump on the bandwagon!
💬 A beginner friendly place
🧠 Stay in the loop and grow your knowledge
🍕 >500K developers share programming wisdom here
❤️ Support the growing dev community!
Register ( 500k+ developers strong 👊)
I am developing applications nodejs few years ago. And I have found it much more versatile than php. I don't know GO to compare with, and I think PYTHON is also very good. What seems to me, is that it could replace Java backends quietly for simplicity.
Regarding your question: "Where are configs, logs, how to enable / disable HTTPS, HTTP2, gzip, caching and everything else possible in nginx / apache out of the box?"
I can tell you that the "configs" and "logs" are there, wherever you want. But other questions need Googling.
You can use it safely with nginx, and create your applications so that they can be turned on or stopped with a simple command like:
sudo service myapp start | stop | restart
And with nginx you can derive your domain to your application. I know it's very easy.
I found how to do it in apache and is very simple:
<VirtualHost *: 80> ServerName yourdomain.dyndns.org On ProxyPreserveHost ProxyPass / http://0.0.0.0:3030/ ProxyPassReverse / http://0.0.0.0:3030/ </ VirtualHost>
One of the drawback for me personally is that Java is better for me since I often work with Java platform at my site domyhomeworkonline.net. I do not like NodeJS because all the methods for doing simultaneous work, callbacks are by a long shot the most exceedingly terrible, Twisted was tormented by them and is the principle motivation behind why it fizzled, and that was with an a great deal more rational and sensible dialect like Python, stackless Python was a vastly improved option and utilized a model like Go's CSP.
Don't miss out!
Join the growing dev community
Get started (no password needed)
Or Sign in with: