node. JS (15) Buffer of the--net module

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.