node pros and cons (unfinished)

node is not a programming language
node js is just based on the operating environment chrome v8 engine
node asynchronous non-blocking I / O (I / O thread pool)
asynchronous non-blocking is you doing it at the same time, also you can do another piece and then things will not jam
blocking the calling thread is suspended and will wait for the result of the request, can not do other things, on the contrary, if non-blocking

Dealing with the database server, the server sends a request to get a piece of information databases, this time will produce a thread, you get the normal server to the data will be disconnected from the server, and then if we have a request Dangdang will establish a connection, spawn a thread, if the next request on the same request several times, so that repeated open disconnected,

Published 84 original articles · won praise 204 · views 10000 +

Guess you like

Origin blog.csdn.net/qq_44983621/article/details/104202809