php and node.js
Everyone knows about php. Mark used it to write Facebook back then. In comparison, node.js is still very young.
What is node.js?
node.js is
1. A toolkit for writing javascript for high-performance websites.
2. Single-threaded asynchronous high speed.
3. Asynchronous memory consumption test: A million-level concurrency test on the Internet, 1M connection consumed 16G of memory without optimization
node.js vs php [Recommended reading: Node.js VS PHP — Which one should you choose? 】
Advantages:
1. High performance (mechanism problem)
2. High development efficiency (save a lot of problems)
3. Wide range of applications (can develop desktop systems, electron framework)
Disadvantages:
1. New, few people
2. Few middlewares
3. The IDE is not perfect
The current learning materials for node.js are not very complete either. The main learning method is to read the documentation and add it yourself More testing.