Streaming in UNIX is a standard concept with standard input, output, and standard errors
For example:
Print out all the JS files to grep to filter out the content that contains the HTTP file, called the UNIX pipeline
Cat *.js | grep http
I learned from the last section that buffer is the data that holds bytes, and the stream is used to stage and move the data, it is usually used together, we can copy the file, like reading the logo, is all read into the memory, and then write to the file, For the larger size of the file is not enough to assume that our server needs to continue to read the file, and then return to the client, while a lot of people are requesting this file, so that each request to read into the memory, and then the memory quickly burst, the best way is to read and write
This article is from the "It Rookie" blog, make sure to keep this source http://mazongfei.blog.51cto.com/3174958/1911578
node. JS (15) Buffer of the--net module