Home>Article>Web Front-end> What is nodejs suitable for?

What is nodejs suitable for?

青灯夜游
青灯夜游 forward
2020-09-08 12:02:12 3389browse

What is nodejs suitable for?

What is nodejs suitable for?

After we learn a new technology, we need to know what scenarios it is suitable for.

Nodejs can be said to be the product of geeks pursuing ultimate performance, but lacks the consideration of server robustness. It is not recommended to use it in businesses that pursue stability, such as banks, securities, telecommunications systems, etc.

[Video tutorial recommendation:node js tutorial]

But Nodejs can achieve almost all the functions of other languages, and Nodejs can also do things that other languages can do. (Of course, every language has something it's good at). But from the characteristics of nodejs, we can know that nodejs is very good at I/O operations, but not good at a large number of CPU calculations (or a large number of CPU calculations, you cannot experience the high performance of nodejs, because the calculation cannot be asynchronous, which will block a certain program execution efficiency ). In addition, nodejs is very suitable for cooperating with websocket and developing real-time business with long connections.

Example:

Crawler

Form Collection

Exam System

Graphic Live Broadcast

Chat Room

web Api interface

......

There are many domestic entrepreneurial companies that like to use nodejs;

And many large companies will use nodejs for implementation A certain aspect of business:

Baidu's form collection; Zhihu's on-site messaging

I myself use nodejs:

1. Graphic and text live broadcast System (socket.io)

2. Template message sending (10S can send 2w (depending on the specific server) the above request to WeChat)

3. Data burying point, user behavior of all systems Collection can be run through a node process

4. Crawler

nodejs can implement business functions in other languages. What other languages can do, nodejs can also do; however, it still needs to be combined with the specific For business analysis, give full play to the advantages of each language.

For more programming-related knowledge, please visit:Programming Teaching! !

The above is the detailed content of What is nodejs suitable for?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete