开发者

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

开发者 https://www.devze.com 2023-02-23 07:54 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Why and When to use node js?
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Why and When to use node js?

Can someone tell me why all this fuss ab开发者_运维技巧out 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消