what is the advantage of using node.js

why do we need node.js?  is it front-end or back-end?
what are the alternative technologies for that?
does it do any help to bootstrap or php?
does it help in RWD?
codelevelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
You can use Node.js to build server-side applications, just like you would use PHP to build server-side applications.  Node.js is written in JavaScript, so if you already know JavaScript, you also know Node.js.  It's a "non-blocking" language meaning that the instructions do not have to run one-at-a-time in sequence, like PHP.  Instead, closures and callbacks are used to detect the end of processes.
http://en.wikipedia.org/wiki/Node.js

Node.js will introduce you to NPM.  If you don't already use NPM you're missing something important in app development.
https://www.npmjs.com/

Bootstrap is basically a CSS framework with a set of agreed-upon conventions for class names.
http://getbootstrap.com/

Responsive Web Design is facilitated by Bootstrap.
http://en.wikipedia.org/wiki/Responsive_web_design

Why do you need Node.js?  It's one way of building a web site.  You could also consider AngularJS, Laravel and many other popular technologies today.  It's "not your father's HTML" any more!
0
codelevelAuthor Commented:
ray

thanks for the details.

for ex. lets take amazon website, say 10,000 customers are accessing the site at the same time.
will there be 10,000 connections if we use php and only one connection if we use node.js?
what is the load on the server based on php and node.js?
whats the advantage in-terms of speed for all the 10,000 customers if the site uses php or node.js?


thans
0
Ray PaseurCommented:
I don't know how to answer those questions - there are so many other moving parts, and Amazon is notoriously tight-lipped about their technology stack.  Maybe a better way to approach it would be to ask what you want to do, then see if Node.js meets your needs.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

codelevelAuthor Commented:
my question is about concurrent connections of users, server load and speed when php and node.js is used.
0
Dave BaldwinFixer of ProblemsCommented:
Amazon (and Google and Microsoft and many other very big companies) use very large data centers with 20,000 to a million servers in one location.  This page http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html talks about the Amazon data centers.  This page http://www.google.com/about/datacenters/inside/locations/index.html shows the location of Google data centers.  And this page http://www.datacenterknowledge.com/the-facebook-data-center-faq/ is about Facebook data centers.

This page http://blog.caustik.com/2012/08/19/node-js-w1m-concurrent-connections/ talks about 1 million concurrent connections using node.js.  It even has the source code for download.  PHP would be limited by the web server software that was supporting it.  Apache, IIS, or Nginx.

The node.js article is using a fairly simple page for the responses.  All the data centers listed are using everything under the sun to run all kinds of applications.
0
codelevelAuthor Commented:
thanks dave.
is it safe to say in future node.js will replace php, java, asp?
front-end technologies like bootstrap, jquery, html 5 will not be affected by node.js as node.js is purely a server side technology?
0
Dave BaldwinFixer of ProblemsCommented:
is it safe to say in future node.js will replace php, java, asp?
No, not at all.  node.js requires root access to the machine and you will never get that on shared hosting.  In addition, that simple exercise with a million connections is not using any database functions or anything else that would slow it down.

In addition, PHP and ASP at least are much easier to use because the underlying web server does a lot of the 'heavy lifting'.  For my own web site I don't need something that will handle a million connections.  I doubt that I get 10 concurrent connections.  HTML and PHP work just fine for me.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
codelevelAuthor Commented:
thanks for the clear details :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.