Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the advantages of using Node.js vs PHP [duplicate]

Tags:

php

node.js

Possible Duplicate:
Why and When to use node js?

Can someone tell me why all this fuss about node.js ? Is a regular web site (lets say a blog) written in node.js faster compared to same written in some php framework? I know that a web server written in node.js will be faster than apache but how about a real web application that doesn't create threads or something like that?

like image 261
overthetop Avatar asked Apr 11 '11 13:04

overthetop


People also ask

What is the advantage of node .JS over PHP?

Comparing Node. js with PHP, the first is inherently asynchronous, event-driven, and non-blocking, while the second is a synchronous programming language. This means that Node. js is more viable than PHP for speeding up development.

What is the advantage of using node JS?

js really shines in building fast, scalable network applications, offers benefits in performance, faster development, and other perks. Today's requirements for processing and consuming real-time information are paramount, and Node. js is exceptionally fast for multi-user real-time data situations.

Which is faster node JS or PHP?

Node. js is much faster than both PHP and Python. However, Python is ideal for complex applications that include data analytics, and PHP is the go-to technology for blogs and eCommerce platforms.


1 Answers

Edited:

There are 2 main advantages:

  1. Speed! (Performance)
  2. Node.js is event-driven and non-blocking and very good at handling concurrent requests.

Here is a link to a benchmarking test for node.js against PHP on Apache.

like image 148
Robin Maben Avatar answered Sep 20 '22 01:09

Robin Maben